I have to input some codes in a .txt file like this:
- 34,bryan,ingles,23,25,30,inge,78,Aprobado Normal
- 20,jorge,math,20,20,20,lic,60,Pasa con lo minimo
now i have to use a php function to show a specific line using a search. i was trying to us a fgets and an If statement to pull it. Like
while(!feof($fp)){$linea=fgets($fp, (if $code==34));echo $linea;}
i need the code. using a $_post to get a specific line from the .txt file if the $_post[codigo] is in .txt file and to show it.