prepare($aquery); if($sth) { $res = $sth->execute(); $numRows = $sth->rows(); for($i = 0; $i < $numRows; $i++) { $result = $sth->fetchrow_hash(); $cID = $result["ID"]; $query3 = "INSERT INTO todo_list VALUES ($cID, $ID)"; $result3 = $adb->dbh_do($query3); } } else { PRINT "Could not prepare query: ".$sth->errstr."
\n"; } PRINT "The add to todo list operation has been completed."; commonFooter(); ?>