I want to put a new row into the database AND refer to this row in a second table. Does anyone have an idea how to do it (using just one php: mysql_query?).
Starting two queries for this purpose is too risky, because the connection can be lost between them.
Idea:
$sql ="INSERT INTO `tbl_humpahumpa`(`humpa_txt`) VALUES ('Ring Ring Ring Bananafon!');
INSERT INTO `tbl_reference_to_humpa`(`humpa_ref_id`) VALUES (' ??? referenceid ??? ');";