mysql_affected_row return 0 ???

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I've this code:

 if(mysql_query("delete from emails where email = '$email'",$mydatabase)){

This code seems ok, but even if the query works fine (the email line is
deleted from the mysql database), the mysql_affected_rows is 0

My config: XP, apache, PHP 4.3.10, mysql 4.1.10

What's wrong with my code ?

Re: mysql_affected_row return 0 ???

Quoted text here. Click to load it

$result = mysql_query("delete from emails where email =
if (mysql_affected_rows($result)>0)

Site Timeline