I have a table with multiple columns. The total number of columns has not yet been indicated and will be changed on a regular basis.
In my insert request, I only need to put two values ββin the table. All other values ββwill be ". Is there a way to specify only the first fields without the need to include '', '', '', '' ...? See below, for example:
I would like to have this:
$query = mysql_query("INSERT INTO table VALUES('','$id')");
Instead of this:
$query = mysql_query("INSERT INTO table VALUES('','$id','','','','','',''......and on and on...)");
Is there any way to do this? Thanks!
source share