what? lol. you've lost me again!Goofan wrote:look tha the first "without get" querry and then the second "with get"
$my is only going to be set if $sql returns a result ($result). if you're getting the error that $my isn't defined, the query for whatever reason definately isn't returning any results.
I don't know why you've used a while() loop on line 31 because there'll only ever be 0 or 1 results to that query. But regardless, $my is set if any result is returned, $my isn't set if the result is empty
right, whichever program you use to create/edit/view your database (the one you've given screenshots of) should somehow let you run SQL queries against the database directly. after line 20 (put it on the line after $sql is set), add this:
Code: Select all
echo "<p>$sql</p>";update:
if it displays a 0 when you used that code then your query is returning nothing, so I assume the saved_id your adding to the query is incorrect