$insert = "INSERT INTO users (column1,column2,column3, column4) VALUES ('Value1','Value2','Value3','Value4')"; mysql_query($insert) or die ("Could not add data to the table"); ?>
Let me know if you have any other questions.
Quote:
Originally Posted by MikeNL
Hi,
Does anyone know how to create HTML tables (3 rows, 4 colums) from a MySQL query in PHP?
I have a script that works, but the first row only has 3 colums, all the other rows have 4.