thewooleymammoth Posted November 20, 2008 Share Posted November 20, 2008 but i cant figure out why this is giving me an unexpected $end <?php if (isset($_GET['search'])) { $search=$_GET['search']; foreach($bands as $b2) { if ($b2 != '.' && $b2!= '..') { ` $file="data/$b2"; $handle=fopen($file, "r"); $read= fread($handle, filesize($file)); $content=explode("||", $read); $new=str_replace(".txt", "", $b2); fclose($handle); if (stripos($new, $search) !== false) { echo "<li><a href='view.php?n=$new'>$new</a> - $content[0]<a href='edit.php?n=$new'> (edit)</a></li>"; } } } } ?> ive been try to figure it out for like an hour and i just dont know Link to comment https://forums.phpfreaks.com/topic/133447-solved-i-may-simply-be-retarded/ Share on other sites More sharing options...
corbin Posted November 20, 2008 Share Posted November 20, 2008 Why is ` in there randomly? Link to comment https://forums.phpfreaks.com/topic/133447-solved-i-may-simply-be-retarded/#findComment-694095 Share on other sites More sharing options...
thewooleymammoth Posted November 20, 2008 Author Share Posted November 20, 2008 hahahahahaha wow thank you idk why thats there must have been a typo thanks Link to comment https://forums.phpfreaks.com/topic/133447-solved-i-may-simply-be-retarded/#findComment-694099 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.