已采纳回答 / 奔放的小心
require_once "../include.php";//链接数据库function connect(){ $link = mysqli_connect(DB_HOST, DB_PWD) or die("数据库打开失败error:" . mysqli_connect_errno()); mysqli_set_charset($link, DB_CHARSET); mysqli_select_db($link, DB_DBNAME); return $link;}//数据插入f...
2017-03-06
最新回答 / 星屑
不知道你和我的情况一样不。我下载的时候文件夹的名字,包括解压后的文件都是乱码。发现是电脑的系统语言设置有问题,在系统语言设置那里几个地方的语言设置选项要相同。
2017-03-05
最新回答 / Gemma_Tong
那是因为你的$filename是个完整路径。那么在这一步 imagejpeg($dst_image,"uploads/".$filename); 后面拼接的时候 会变成 uploads/C:/wamp/www/shop_imooc/前台/images/des_big.jpg 。这样当然是不行的了~
2017-03-03
最赞回答 / 慕粉1559578207
终于知道了,是sql语句一定要空格,每个每个之间都要空格,where和双引号之间也要空格!!!!!! $sql="update {$table} set {$str} ".($where==null?null:" where ".$where);
2017-03-01
最新回答 / greenhandc
是这样的,mysqli_insert_id(connect()),returns the ID generated by a query on a table with a column having the AUTO_INCREMENT attribute. If the last query wasn't an INSERT or UPDATE statement or if the modified table does not have a column with the AUTO_INCREME...
2017-02-28
最新回答 / Getatny
index.php页面需要开启session才可以使用session,因为看不到你index页面页头的代码,觉得你应该是只在dologin页面使用了session_start();,你在index页面开启应该就行了
2017-02-28