john smith, john@smith.com, event 1
john smith, john@smith.com, event 2
here is my php
Code: Select all
function insert(){
extract($_POST);
mysql_query("INSERT INTO module_novemberAttendees VALUES(
'',
'$username',
'$school',
'$phone',
'$email',
'$event_id',
'$attend'
)");
}
if(isset($_POST['username'])):
insert();
endif;