Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我对这行代码有问题
$db->select($tbl, plan_name,NULL,'plan_name ="{$pname}"');
查看我的函数转储
SELECT plan_name FROM plans WHERE plan_name ="{$pname}"
变量 $pname 作为文字传递。
单引号文字不会在其中替换变量。
供参考:http ://www.php.net/manual/en/language.types.string.php