Got error Undefined id - on the page

If you like you can pm me a zip of all the files and an SQL dump of the DB and I will look this over. Make sure it includes everything I need to run it.

1 Like

Hi Benanamen Thank You i will do that
i will send you a demo version off it

I reviewed the files OP provided. The problem is exactly what I said in Post #2.

OP did not implement the fix of adding the curly braces.

1 Like

Finally i got it after asking about curley braces
also i had to redo the location for the header
it all works fine :smiley:

Thanks for teaching a noob new stuff even if its just telling me :stuck_out_tongue:

new header location

     $url = parse_url($urlz);
     $url['path'] = "" . $url['path'];
     $refresh = $url['path']."?".$url['query'];
     header("Location:" .$refresh);
if (isset($_GET['id'])) {  // here just needed a } 
 $id = ($_GET['id']); 
 $sql = "SELECT * FROM links WHERE id='$id' LIMIT 1";
  $result = mysqli_query($link, $sql); 
  if( $result )  
  while($list = mysqli_fetch_assoc($result)) {

 <?php }} ?> // also other }  added here

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.