MySQL Forums
Forum List  »  PHP

INSERT into two tables
Posted by: Rick Cummings
Date: April 23, 2011 06:43AM

Hi,
I have two events calendars, one public and one private for members.
When an event is posted to the public calendar, it also needs to appear on the private calendar.

This code only posts to the second INSERT statement:

$sql = "INSERT INTO publicevents SET uid=$uid, m=$month, d=$day, y=$year, start_time='$starttime', end_time='$endtime', title='$title', text='$text'";
$sql = "INSERT INTO privateevents SET uid=$uid, m=$month, d=$day, y=$year,start_time='$starttime', end_time='$endtime', title='$title', text='$text'";

Thanks in advance for help with this problem!

Cheers, Rick

Options: ReplyQuote


Subject
Written By
Posted
INSERT into two tables
April 23, 2011 06:43AM
April 23, 2011 11:28AM
April 23, 2011 11:54AM
April 23, 2011 09:01PM
April 24, 2011 03:34AM
April 24, 2011 06:43AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.