$city_suburb
$state
$postcode

"); $query = "select * from take_away_restaurants where business_name clike '$business_name' and city_suburb clike '$city_suburb' and state clike '$state' and postcode = '$postcode'"; echo("$query
"); if(msqlQuery($sock, $query ) < 0) { fatal("Error: $ERRMSG\n"); } $res = msqlStoreResult(); $row = msqlFetchRow($res); $num_rows = msqlNumRows($res); if ($num_rows < 1) { echo("

None found."); echo(""); } else { if ($num_rows == 1) { echo("One Found"); $account_no = $row[0]; echo(""); } else { echo("More than one found"); } } msqlFreeResult($res); msqlClose($sock); exit(0); /*echo("");*/ >