mysql_affected_row return 0 ???
From: Bob Bedford (bedford1_at_notforspammershotmail.com)
Date: 02/28/05
- Next message: doug: "WebDav SEARCH question"
- Previous message: Jacob Atzen: "Re: FAQ"
- Next in thread: Anthony Houghton: "Re: mysql_affected_row return 0 ???"
- Reply: Anthony Houghton: "Re: mysql_affected_row return 0 ???"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 28 Feb 2005 09:33:14 +0100
I've this code:
if(mysql_query("delete from emails where email = '$email'",$mydatabase)){
if(mysql_affected_rows()>0)
echo('successfull');
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 ?
- Next message: doug: "WebDav SEARCH question"
- Previous message: Jacob Atzen: "Re: FAQ"
- Next in thread: Anthony Houghton: "Re: mysql_affected_row return 0 ???"
- Reply: Anthony Houghton: "Re: mysql_affected_row return 0 ???"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|