Reputation: 3404
Hi I have a parameter named "domain", and i want to use it like that
mysql_select_db($domain_blacklist)
but as you guess, it use $domain_blacklist as a prameter! How can I use only "domain" part as a parameter? thanks for help...
Upvotes: 0
Views: 90
Reputation: 50019
I think this is what you're looking for.
mysql_select_db($domain . '_blacklist');
If this is the answer you were looking for, you should consider going through a few PHP tutorials to get yourself familiar with the language.
http://net.tutsplus.com/articles/news/diving-into-php/
http://net.tutsplus.com/articles/web-roundups/25-resources-to-get-you-started-with-php-from-scratch/
http://net.tutsplus.com/tutorials/php/learn-php-from-scratch-a-training-regimen/
Upvotes: 1