Hi Guys,
If i have the following query:
$sql = "insert into categories(CatParent, CatName, CatDescription, description, address, suburb, state, post_code, phone, email, Info, url, picture, map_ref, map_pic_thumb, map_pic_detail, pref, active)
values('$CatParent','$CatName','$CatDescription','$description','$address','$suburb','$state','$post_code','$phone','$email','$Info','$url','$picture','$map_ref','$map_pic_thumb','$map_pic_detail','$pref','$active')";
//echo "Last inserted record has id %d\n, mysql_insert_id())";
$sql1 = "insert into pref(pref_email, expiry_date, pref_memo) values('$pref_email','$expiry_date','$pref_memo')";
$result = mysql_query($sql);
$result1 = mysql_query($sql1);
}
....how can i do an error check on both $result and $result1.
Can you do it at the same time?
Cheers,
Sean