要寫成這樣
就是不要加‘ ’號
drop table if exists travel_user;
create table travel_user(
id int unsigned auto_increment key,
username varchar(20) not null unique,
password char(32) not null,
sex enum("保密","男","女") not null default "保密",
face varchar(50) not null,
regTime int unsigned not null
);
就是不要加‘ ’號
drop table if exists travel_user;
create table travel_user(
id int unsigned auto_increment key,
username varchar(20) not null unique,
password char(32) not null,
sex enum("保密","男","女") not null default "保密",
face varchar(50) not null,
regTime int unsigned not null
);
2016-12-17
update( )顯示失敗,
總是顯示 'update admin set admin_name='wu',password='111',Email='11' where admin_id='
發(fā)現(xiàn)id傳不過來,但delete的時候是可以的
總是顯示 'update admin set admin_name='wu',password='111',Email='11' where admin_id='
發(fā)現(xiàn)id傳不過來,但delete的時候是可以的
2016-12-16
終于出來了,最簡單的方法,把字體放在image.func.php目錄下
imagettftext($image, $size, $angle, $x, $y, $color, "simkai.ttf", $text);
imagettftext($image, $size, $angle, $x, $y, $color, "simkai.ttf", $text);
2016-12-15
king老師,你在封裝更新函數(shù)的時候使用了 $str.=$sep.$key."='".$val."'"; 能理解是為了拼接所有傳入數(shù)組key和val 以便一次性全部更新,但foreach每次遍歷都會重置變量,所以到最后真正能傳入$str變量被sql執(zhí)行到的只有最后一組數(shù)值
2016-12-15
include報(bào)錯就是文件位置的問題,具體我也很懵逼,反正挨著試吧,比如E:PHP/manage/include.php,/manage/include.php,../include.php;其實(shí)這些我都看得懂,就是不知道什么情況下用什么定位方法。。。
2016-12-14
解決$page沒傳參數(shù)報(bào)錯:
$page = empty($_REQUEST['page']) ? 1 : intval($_REQUEST['page']);
$page = empty($_REQUEST['page']) ? 1 : intval($_REQUEST['page']);
2016-12-14