Originally Posted by Fou-Lu
I wouldn't expect that error from it, but $id isn't defined anywhere in the script. So you are effectively pointing at id = null (where null isn't the same as IS NULL in SQL). Since no id will match null, there is therefore no results.
Perhaps the id should be coming from $_GET?
$id = isset($_GET['id']) ? (int)$_GET['id'] : 0; for example?
Hello i'm uncertain as I'm following this tutorial http://www.phpeveryday.com/articles/...data-P284.html
Im guessing ID is used from the database as there is a column called ID
Sorry bit of a newbie
Nope you were right bingo worked thanks A++
You're so great man
Very helpful so relieved right now haha