ShowWindow(hwnd,nShowCmd);
成都網(wǎng)站建設(shè)、成都網(wǎng)站設(shè)計(jì)服務(wù)團(tuán)隊(duì)是一支充滿著熱情的團(tuán)隊(duì),執(zhí)著、敏銳、追求更好,是創(chuàng)新互聯(lián)的標(biāo)準(zhǔn)與要求,同時(shí)竭誠為客戶提供服務(wù)是我們的理念。創(chuàng)新互聯(lián)把每個(gè)網(wǎng)站當(dāng)做一個(gè)產(chǎn)品來開發(fā),精雕細(xì)琢,追求一名工匠心中的細(xì)致,我們更用心!
UpdateWindow(hwnd);
while(GetMessage(msg,NULL,0,0))
TranslateMessage(msg);
DispatchMessage(msg);
}
return msg.wParam;
}
$task_list = [["cid"=1,"level"="1","name"="liming"],["cid"=2,"level"="2","name"="ddd"],["cid"=3,"level"="3","name"="sfsdfsd"]];
$level_list = [["level"="1","name"="liming_l"],["level"="2","name"="ddd_l"],["level"="3","name"="sfsdfsd_l"]];
$cate_list = [["id"=1,"ico"="001","name"="liming_c"],["id"=2,"ico"="002","name"="ddd_c"],["id"=3,"ico"="003","name"="sfsdfsd_c"]];
foreach ($task_list as $item) {
foreach ($level_list as $ite) {
if ($item['level'] == $ite['level']){
$item['levelname'] = $ite['name'];
}
}
foreach ($cate_list as $it) {
if ($item['cid'] == $it['id']){
$item['name'] = $it['name'];
$item['ico'] = $it['ico'];
}
}
empty($item['name']) ? $item['name'] = $cate_list[0]['name'] :'';
empty($item['ico']) ? $item['ico'] = sp_config('web_logo') :'';
}
print_r($task_list);
Array ( [0] = Array ( [cid] = 1 [level] = 1 [name] = liming_c [levelname] = liming_l [ico] = 001 ) [1] = Array ( [cid] = 2 [level] = 2 [name] = ddd_c [levelname] = ddd_l [ico] = 002 ) [2] = Array ( [cid] = 3 [level] = 3 [name] = sfsdfsd_c [levelname] = sfsdfsd_l [ico] = 003 ) )
正常邏輯數(shù)組里的值是改變了的,如果沒改變這個(gè)需要查詢一下數(shù)組的值匹配了
建議在10行(sqlsrv_query)后面增加下面的語句:
if( $data === false ) {
echo $sql;
die( print_r( sqlsrv_errors(), true));
}
主要是查看SQL查詢是否執(zhí)行成功,另外也可以把echo $sql放在執(zhí)行前,當(dāng)需要修改的數(shù)據(jù)不存在(0條修改)的時(shí)候sqlsrv_query執(zhí)行會(huì)成功。
$userId是否有值,有沒有報(bào)錯(cuò)?
$sql?=?"update?`user`?set?`id`='".$userId."',`username`=".$username.",`password`=".$password.",`email`=".$email.",`idgroup`=".$idgroup."?where?id=".$userId."";
改成
$sql?=?"update?`user`?set?`username`=".$username.",`password`=".$password.",`email`=".$email.",`idgroup`=".$idgroup."?where?id=".$userId."";
試試