Is it correct for me to add it here? (Intval (base64_decode ($ _ GET [id]) & quot;); is nearby .. Thank you. PHPcode & lt ;? Phpif ($ _ GET [id]) {$ SQL _1 = mysql_query (& quot; select * from Is it correct here?
(Intval (base64_decode ($ _ GET [id]) "); is nearby .. Thank you.
PHP code
------ Solution --------------------
The variables contained in the string are parsed, and the function name and constant are not parsed.
PHP code
$ Id = intval (base64_decode ($ _ GET [id]); $ SQL _1 = mysql_query ("select * from $ tbname_jihua where id = {$ id }"); // or $ SQL _1 = mysql_query ("select * from $ tbname_jihua where id = ". intval (base64_decode ($ _ GET [id]);
------ Solution --------------------
Intval
Base64_decode
They are all php functions. It cannot be parsed in the string.
------ Solution --------------------
Code similar to intval (base64_decode ($ _ GET [id ])
Why should I write it in SQL? Because it saves some time?
$ Id = intval (base64_decode ($ _ GET [id]);
$ SQL _1 = mysql_query ("select * from $ tbname_jihua where id = {$ id }");
This is unclear, and your problem has been solved...