chat_list.php?sql=select * from yw_chat where jqmc like '%7099%' order by id desc用get接收怎么变成select * from yw_chat where jqmc like 'p99%' order by id desc
echo $sql=str_replace("\\","",$_GET["sql"]);
69为什么要变成p呢? 如何修改此问题?
echo $sql=str_replace("\\","",$_GET["sql"]);
69为什么要变成p呢? 如何修改此问题?
这个……
base64_decode
用其编码,然后url传送,然后再解码.不过传sql用get方式不太好.
这个……
2.即使用了,你最好經過編碼解碼base64_encode,base64_decode
接收直接get即可,用其它的还要解码
你就传关键字就行了,到程序中再拼接成sql语句,chat_list.php?jqmc=7099。
哪有直接传sql语句的
sql="select * from yw_chat where jqmc like '%$string%' order by id desc"
url只提交那个关键词过来就行了
把$s 放在url中试试