Menu
I have to insert into table data. Can you tell me how to insert rows in table?
I have code:
[code=php]
$query = “insert into sales
values (1,345,100,800)”;
$query = “insert into sales
values (2,445,200,740)”;
$query = “insert into sales
values (3,945,300,680)”;
$query = “insert into sales
values (4,1145,400,697)”;
mysql_query ($query,$link)
or die (“Insert error:”.mysql_error());
mysql_close ($link);
But it will put in table just last row. how to do that it will put all data?