第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機(jī)立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

php Mysql語句出錯

php Mysql語句出錯

慕先生4543078 2017-05-09 15:47:33
????$conn?=?new?mysqli($serverName,?$MYSQLUserName,?$MYSQLPwd); ????$sql?=?"use?WA"; ????if($conn->query($sql)){ ????}???else{ ????????if($conn->error?==?"Unknown?database?'wa'"){ ????????????$sqlCreateDatabase?=?"create?database?WA;"; ????????????$sqlCreateDatabase?.=?"alter?database?WA?character?set?utf8;"; ????????????$conn->multi_query($sqlCreateDatabase); ????????????$sqlCreateTable?=?"create?table?userInfo( ?????????????????id?smallint?unsigned?primary?key?auto_increment, ?????????????????userName?varchar(30), ?????????????????pwd?varchar(6) ?????????????);"; ?????????????if($conn->query($sqlCreateTable)){ ????????????????echo("success"); ?????????????}??else{ ????????????????echo($conn->error); ?????????????} ????????} ????}數(shù)據(jù)庫WA成功創(chuàng)建,字符集也修改了。但數(shù)據(jù)表沒能創(chuàng)建成功。報(bào)錯:Commands out of sync; you can't run this command now百度了下沒找到解決方法,說是得先清空結(jié)果集,試了下也沒成功。請大神幫忙。錯誤明顯是從第14行開始的。在14行前面應(yīng)該是要釋放一下什么東西,請問這個東西要怎么釋放。
查看完整描述

3 回答

  • 3 回答
  • 0 關(guān)注
  • 1922 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號