Can I somehow after a certain period of time (in different requests), add data to one line?

INSERT INTO (december) VALUES (1); INSERT INTO (march) VALUES (2); 

This creates two lines, how to make one created? Only without WHERE december = 1 .

  • As noted by andrew68, more specifically please)) - Gena Ant

2 answers 2

And two times the same line you can not insert =) The first time - insert, the second update - and without where you can not do

 $query = mysql_query("INSERT ..."); $insId = mysql_insert_id(); {whatever} $query = mysql_query("UPDATE ... WHERE id = ".$insId); 

    More specific question

     INSERT INTO (december, march) VALUES (1, 2);