Hi All,
I need to test for an empty record in a data table.
This is what I have: If the record is found carry on and execute the rest of the script, if member_id is empty redirect to another page. I am not to sure how to do this:
My Script (part)
$colname_owners = "-1";
if (isset($POST['pin'])) {
$colname_owners = (get_magic_quotes_gpc()) ? $POST['pin'] : addslashes($_POST['pin']);
}
mysql_select_db($database_baggageppin, $baggageppin);
$query_owners = sprintf("SELECT * FROM amember_baggagemembers WHERE member_id = %s", GetSQLValueString($colname_owners, "int"));
$owners = mysql_query($query_owners, $baggageppin) or die(mysql_error());
$row_owners = mysql_fetch_assoc($owners);
$totalRows_owners = mysql_num_rows($owners);
if (empty(member_id)) *load another script
else
continue with this script *
If anyone can help please.