Hello !!!
i have a function which is supposed to insert data in 2 tables ,"comments" and "postalbumcomments"
The problem is that only the table "comments" gets the data and "postalbumcomments" does not change at all
my code syntax seems ok..but don't know why the table "postalbumcomments", does not get updated
can someone help me plz
here are my codes
:
//connection stuffs
include("dbinfo.inc.php");
$userid=2;
$albumid=1;
$Data = "mycomments bla bla bla!!!";
$query = "INSERT INTO comments VALUES ('9','$Data','2001-01-05')";//This line works fines
mysql_query($query);//This line works fines
//update table post albumcomments.Here i need memberid, albumid, commentid=9
$query2 ="INSERT INTO postalbumcomments VALUES ('$userid','$albumid','9')";
mysql_query($query2);//This line seems not not working
//close connection
mysql_close();