Jump to content

Help inserting to table


ambo

Recommended Posts

$sql="INSERT INTO events (id,start,end,type) VALUES ('$name','$email')";

Are the thing highlighted in red have to be in the same order as the ones highlighted in green

 

and are the ones in red are they actually written as the variable name in the table like id my variable in the table is event_id ould i have to add that whole event_id

Link to comment
https://forums.phpfreaks.com/topic/125659-help-inserting-to-table/
Share on other sites

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.