ok so just ran into a problem using tinyint instead of int i have hit the 127 max.
but i did not realize that on time and now i have about 100 entries that i need to fix with a loop to do an increment of a counter
this is what i have. but if i was to run it it only makes every row with the 127 to 128
$counter = 1;
$correct = 127+$counter;
$result1 = mysql_query("SELECT * FROM paperwork WHERE id = '127' ");
while($myrow1 = mysql_fetch_array($result1))
{
$query = "UPDATE paperwork SET id ='$correct' WHERE id= '127'";
$result = mysql_query($query);
if($result){
echo "yay";
$counter++;
}
}
thanks in advanced