Hi there,
This maybe (or at least I hope) really obvious to someone and I apologize if this is in the wrong forum (there are sooo many! lol) but basically sql seems to always return a value of 1 whether a: the query completes, or b: the query did not find any results in either UserFrom or mail_id
$x is always = 1 how can I tell if the query completes or not?
Thanks all
This maybe (or at least I hope) really obvious to someone and I apologize if this is in the wrong forum (there are sooo many! lol) but basically sql seems to always return a value of 1 whether a: the query completes, or b: the query did not find any results in either UserFrom or mail_id
Code:
$query = "DELETE FROM ".TBL_MAIL_SENT." WHERE UserFrom = '$session->username' AND mail_id = '$msgid' LIMIT 1";
$x = $database->query($query) or die("An error occurred resulting that this message has not been marked read!");
$x is always = 1 how can I tell if the query completes or not?
Thanks all