嗨,我有一个名为“domain”的参数,我想像这样使用它
mysql_select_db($domain_blacklist)
但正如您所猜测的,它使用 $domain_blacklist 作为参数!如何仅使用“域”部分作为参数?感谢您的帮助...
最佳答案
我想这就是您要找的。
mysql_select_db($domain . '_blacklist');
如果这是您正在寻找的答案,您应该考虑阅读一些 PHP 教程来熟悉该语言。
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/
关于php - 在php中使用mysql函数的参数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5699963/