[PHP] URGENT Please: global or not? From: [ key5 ] (key5 <email protected>)
Date: 12/19/00

Hello,

I use a bunch of functions to query the db.

I used a table named buildType to store types of buildings for rent AND
sales

Now the client tells me that buildings are different for RENT from those for
SALE

so I use buildType for Rent
and I created buildTypeA for Sale

My functions doesn't work any more since I tried to cope with the problem by
assigning a variable $buildTypeTAB the names of the tables that on time to
time I need to query

function q(){
return "select * from $buildTypeTAB "
}

BUT the function q returns only:

"select * from" and of course gives an error...

I declare the $buildTypeTAB variable in the config.inc file at top of every
file and as first inclusion of includes...

HOW SHOULD I DECLARE THEM in order for them to be "seen" inside the
functions?

Thanks:
Nicola

Nicola Delbono
key5 <email protected>
Key5 di Delbono Nicola
P.zza Cavour, 22
25038 Rovato (Bs)
Tel 39 030 7241055
Fax 39 030 7241055
Cell. 0338 5071740

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>