Hi,
I don't think mysql_affected_rows() is working like it should for me.
In the manual for mysql_affected_rows() it has this (Example 1):
/* this should return the correct numbers of deleted records */
mysql_query(DELETE FROM mytable WHERE id 10);
printf(Records deleted: %d\n,
From: Tyler Longren [EMAIL PROTECTED]
I don't think mysql_affected_rows() is working like it should for me.
In the manual for mysql_affected_rows() it has this (Example 1):
/* this should return the correct numbers of deleted records */
mysql_query(DELETE FROM mytable WHERE id 10);
Hi Cpt,
That's not the exact code. The exact code is below. Multiple workers
are being selected from a MULTIPLE select form field. I just use a
while loop do go through the selected ones to delete them individually.
PHP Version: 4.3.4
MySQL Version: 4.0.17
$i=0;
while ($i = $selected) {
Hello,
I use PHP v. 4.3.3 and MySQL v 4.1.0a and
I have the same experience as Tyler. Also when performing INSERT and UPDATE
commands.
And I also don't know why.
Mike
Cpt John W. Holmes [EMAIL PROTECTED] píse v diskusním príspevku
news:[EMAIL PROTECTED]
From: Tyler Longren [EMAIL PROTECTED]
From: Tyler Longren [EMAIL PROTECTED]
That's not the exact code. The exact code is below. Multiple workers
are being selected from a MULTIPLE select form field. I just use a
while loop do go through the selected ones to delete them individually.
PHP Version: 4.3.4
MySQL Version: 4.0.17
5 matches
Mail list logo