At 6:34 PM +0200 5/5/02, John Fishworld wrote:
John,
Your mysql_db_query should contain either "DBWEB" (with
quotes) or $DBWEB (a var). Just DBWEB is an error.
Also, from the manual re: mysql_db_query
Note: This function has been deprecated since PHP 4.0.6.
Do not use this function.
Use m
l'
> Subject: Re: [PHP] function sql question
>
> duh !
> yeah that makes sense !
> but it doesn't work !
> I've no idea why but it refuses to give any information back !
>
> I've managed to get round this by now no loger declaring it a function
> but
duh !
yeah that makes sense !
but it doesn't work !
I've no idea why but it refuses to give any information back !
I've managed to get round this by now no loger declaring it a function
but just actually requiring it where i need it
require ("get_city_1.inc");
print_r(array_values ($city));
I'v
>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...
--
PHP General Maili
I've got a small function which checks city name with post codes
And because this needs to be checked in several scripts I want to have it in
my common functions file
and include it !
require ("common_funtions.inc");
and then use it
if (!check_city_from_plz($t_zipcode)){
echo "Your city does n
5 matches
Mail list logo