Jump to content

[SOLVED] i may simply be retarded


thewooleymammoth

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.