开发者

Using parameter with mysql function in php

Hi I have a parameter named "dom开发者_JAVA百科ain", 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...


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/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜