Hi all,

I am connecting to mySQL with PHP. I am executing, against an empty
table, a delete statement like this: mysql_query($sql,$this->getCon())
and checking the return value, which == '1'. I can't find much
documentation on the return value of mysql_query(). It seems to return
something called a resource, but since when I say:

if(!$returnValue)
                {
                        die('Could not delete data: ' . mysql_error());
                }
                else
                {
                        echo $returnValue . " record deleted successfully<br 
/><br />";
                }

It always goes to the else branch -> I am guessing that it can't be
deleting something that's not there, but I can't figure out what
$returnValue is telling me then with a return value of '1', which is
generally equivalent to 'true'.

Can you clarify these crossed signals I am getting? Thanks, Scott

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "PHP 
& MySQL" group.
To post to this group, send email to [EMAIL PROTECTED]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/phpmysql?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to