[PHP] mysql_affected_rows() function

2004-01-06 Thread Tyler Longren
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,

Re: [PHP] mysql_affected_rows() function

2004-01-06 Thread CPT John W. Holmes
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);

Re: [PHP] mysql_affected_rows() function

2004-01-06 Thread Tyler Longren
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) {

Re: [PHP] mysql_affected_rows() function

2004-01-06 Thread Michal Oskera
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]

Re: [PHP] mysql_affected_rows() function

2004-01-06 Thread CPT John W. Holmes
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