RE: [PHP] function sql question
| From: | John Holmes | Date: | Sun, 05 May 2002 19:44:20 +0000 |
| Subject: | RE: [PHP] function sql question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-96157@lists.php.net to get a copy of this message | ||
> return 1;
> return $city_id;
> return $cityname;
You can't return 3 values...try returning an array, instead.
$ret[0] = $city_id;
$ret[1] = $cityname;
return $ret;
or...
$ret["City_ID"] = $city_id;
$ret["CityName"] = $cityname;
return $ret;
---John Holmes...