摘要:
<?php$str = "abc";$abc = "333";echo $$str;?>以上是正确的错误,以下是按常规字符串拼接思路做错的错误结果:<?php$str = "abc";$abc = "333";echo "$".$str;?> 阅读全文
摘要:
1.拼接and的时候,只需要传$uid过来的方式;$where = ' and uid='.$uid;$sql = "select * from message where pid=1 ".$where." order by intime desc"; 阅读全文