Hi,
I am bugged by this insert into multiple tables problem. I have searched similar problems on this forum but non seems to work on my issue. My insert code is as follows:
So, basically I have two tables. One is the members table and the other one is the ed table. The insertion query for members table works well. It inserts the data on the table. However, when its time to insert on the next table which is ed, nothing happens. Is their any conflicting syntax or rules that makes my insertion into multiple tables impossible. Please help me out. Thank you in advance.
I am bugged by this insert into multiple tables problem. I have searched similar problems on this forum but non seems to work on my issue. My insert code is as follows:
PHP Code:
$result =
mysql_query("INSERT INTO members (id, name,birthdate, age, status, occupation)
VALUES(NULL, '$NAME', '$BDATE', '$AGE', '$STATUS', '$OCCUPATION')");
$result = mysql_query("INSERT INTO ed (id, elem, hs, college)
VALUES(NULL,'$ELEM', '$HS', '$COLLEGE')");
Comment