In the code below, when $host can’t be found in the table I’d like for the page to redirect to another page I set. I’ve been struggling for a while to figure out how to do this given the “die(mysql_error())” on the next line. Any help would be appreciated!
$lookup = "SELECT DISTINCT `Id` FROM `google_accountid` WHERE `host_name` = '$host'";
$retailer_query = mysql_query($lookup) or die(mysql_error());
1 Answer