见下
【 在 devman (成功就在眼前) 的大作中提到: 】
: Warning: mysql_error(): 1 is not a valid MySQL-Link resource in /home/www/html/pc/pcadmin_app.php on line 88
: MySQL Error:
: 代码如下:
: //添加用户
: $query = "INSERT INTO `users` ( `uid` , `username` , `corpusname` , `description` , `theme` , `nodelimit` , `dirlimit` , `createtime` , `style` , `backimage` , `visitcount` , `nodescount` , `logoimage` , `modifytime` , `links` , `htmleditor`
: "VALUES ('', '".addslashes($userid)."', '".addslashes($corpusname)."', '".addslashes($corpusname)."' , 'others', '300', '300', NOW( ) , '0', '' , '0', '0', '' , NOW( ) , '', '1', '600', '5', '', '0', NOW( ) , '' , '0' , '其他类别' ,
: if(!mysql_query($query,$link))
: {
: pc_db_close($link);
: exit("MySQL Error: ".mysql_error($link));
这两句话交换一下再运行看看
: }
: 这里1是是 htmleditor value
: 我的mysql版本是4.1.7
--
FROM 128.12.181.30