How do I explain this....
Basically say if I create a post, I click submit, the following database insert would happen
$sql="INSERT INTO comments (userid, topicid, category, topicname, comment, date, name, avatar)
VALUES
('$row[id]','$content[id]','blogs','$content[topic]','$_POST[comment]','$today','$row[name]', '$row[cavatar]')";
now say at the same time of that post I want another INSERT query running, how do I get the AUTO created ID number from the first query into the second query?
second query would be
$notifyme="INSERT INTO notifyme (userid, catid, category, date,time)
VALUES
('$row[id]', ,'comments','$date','$time')";
they both run the same time but I need the AUTO created id number off QUERY 1 to insert under CATID for QUERY 2
$sql="INSERT INTO comments (userid, topicid, category, topicname, comment, date, name, avatar)
VALUES
('$row[id]','$content[id]','blogs','$content[topic]','$_POST[comment]','$today','$row[name]','$row[cavatar]')";
$notifyme="INSERT INTO notifyme (userid, catid, category, date,time)
VALUES
('$row[id]', ,'comments','$date','$time')";
is how it looks when ran, both will be running the same time