ok below is this insert into code from another program.
This is my learning grounds so bare with me...
$query = sprintf("INSERT INTO `user_events` (`event_id`, `location`, `title`, `event`, `picture_1`, `picture_2`, `day`, `month`, `year`, `date`, `time`) VALUES (NULL, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s');", $location, $title, $event, $picture_1, $picture_2, $day, $month, $year, $date, $time);
Now before it inserts event_id I want to insert my varialbe $id before that.
How would I modify this code accordingly?