I want to do a sql update loop statement, by using the do--while in php

Posted by Jean on Stack Overflow See other posts from Stack Overflow or by Jean
Published on 2010-06-10T08:53:01Z Indexed on 2010/06/10 9:12 UTC
Read the original article Hit count: 163

Filed under:
|
|

Hello,

I want to loop the update statement, but it only loops once.

Here is the code I am using:

do {
    mysql_select_db($database_ll, $ll);
    $query_query= "update table set ex='$71[1]' where field='val'";
    $query = mysql_query($query_query, $ll) or die(mysql_error());
    $row_domain_all = mysql_fetch_assoc($query);
} while ($row_query = mysql_fetch_assoc($query));

Thanks Jean

© Stack Overflow or respective owner

Related posts about php

Related posts about mysql