23.12.2012 Posted January 24, 2010 Share Posted January 24, 2010 Well... I found this one to be very weird. I've got the following URL: http://localhost/sangym2/edit_user.php?id=1&name=Unknown%20Humanoid&address=&phone=&email=spam@yahoo.com®_nr=0001&others=UNKH Here's the error I get: Notice: Undefined index: id in /Library/WebServer/Documents/sangym2/edit_user.php on line 27 And here's the line in edit_user.php which causes the error: $id = mysqli_real_escape_string($db_conn, trim($_GET['id'])); I tried var_dump() on $id, and I get string(0): . Link to comment Share on other sites More sharing options...
Synook Posted January 24, 2010 Share Posted January 24, 2010 Try echoing print_r($_GET) just before that and see what you get. Link to comment Share on other sites More sharing options...
23.12.2012 Posted January 24, 2010 Author Share Posted January 24, 2010 Right, thanks for the tip! Now I understand where the error is coming from. Thanks a lot! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.