Jump to content

HELP. raise the value of "number" in each feild


Stretch

Recommended Posts

What i want to do is raise the value of "number" in each feild when the script is called in a browser or chron job

 

this doesnt seem to work, in a noob. any help please?

 

<?

#connection

 

$sql="select `number`, `id` from table ORDER BY `id` DESC ";

$res = mysql_query($sql) or die(mysql_error());

while ($line = mysql_fetch_array($res));

{

$turns = $line['turns'];

$id = $line['id'];

 

echo $id . '-' . $turns;

}

?>

 

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.