I want to slice a large database in smaller group. I made a script to do that by slice of 1000. The script work but affect the entire database instead of the 1000 first one. Here's the script :
I tried many variations without success )) o;
HTML:
$i=1;
$sql_tous=mysql_query("SELECT * FROM listeenvoi");
while($ligne_tous=mysql_fetch_array($sql_tous)){
if(($ligne_tous['groupe']=='abonne1') && ($i < 1000)){
$ud = mysql_query("UPDATE listeenvoi SET groupe=\"abonne\" ");
$i++;
}
}
I tried many variations without success )) o;