Hi,
I have code where I insert some records then use the id of that record to insert into some other table. It works fine. But I want to know if there is some way I can find out if the last query has been processed or is still being processed before I move onto the second line. Here is the relevant part of the code..
$DBConnection->InsertRecord('afq_question', $insertArray);
//here i want to check if the last query has been processed or not..
$qid = $DBConnection->GetFirstData("SELECT id FROM afq_question WHERE qid=$x[quizid] AND question='$q'");
will using mysql_insert_id() solve this?
Thanks