请问我这里加的对吗?
(intval(base64_decode($_GET[id])))"); 就是附近。。谢谢。
- PHP code
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><?phpif($_GET[id]){ $sql_1=mysql_query("select * from $tbname_jihua where id =(intval(base64_decode($_GET[id])))");}else{ $sql=mysql_query("select * from $tbname_jihua");}?>------解决方案--------------------
字符串里包含的变量才被解析,函数名和常量不会被解析
一、源码特点企业费用管理系统,有权限分配,登陆验证,新增角色,发布公告等二、功能介绍1、js的兼容性有个地方不行(比如模块排序,那个时候也是雏鸟一只,写了一小撮,现在用jq应该好处理的吧,ie里面没问题,大家发挥吧)2、里面的菜单和对应菜单下面的目录项可以根据需求自己添加的,有对应模块3、可以根据自己设定的角色添加对应的访问页面4、有些操作涉及到按钮权限,对于这种思路,我粗粗的写了2个自定义控件,
- 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])) );<br><font color="#e78608">------解决方案--------------------</font><br>intval<br>base64_decode<br>都是php函数,就和上面说的。在字符串里面是无法解析的。<br><font color="#e78608">------解决方案--------------------</font><br>类似intval(base64_decode($_GET[id])) 这样的代码<br>单独写出来不好么,为什么要写在SQL里呢?因为省地方?<br><br>$id=intval(base64_decode($_GET[id]));<br>$sql_1=mysql_query("select * from $tbname_jihua where id ={$id}");<br><br>这样不清晰明了,而且你的问题也解决了...<div class="clear">
</div>









