为什么PDO里INSERT INTO成功了,fetch却提取失败了呢?
$sql2='INSERTINTOuserlist(user,email,Image)values(?,?,?)';try{$stmt2=$pdo->prepare($s...
$sql2 = 'INSERT INTO userlist(user,email,Image) values(?,?,?) ';
try{
$stmt2 = $pdo->prepare($sql2);
}catch(PDOException $e){
echo $e->getMessage();
}
$stmt2->execute(array($user,$email,'image'));
$result2 = $stmt2->fetch();
没结果 展开
try{
$stmt2 = $pdo->prepare($sql2);
}catch(PDOException $e){
echo $e->getMessage();
}
$stmt2->execute(array($user,$email,'image'));
$result2 = $stmt2->fetch();
没结果 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询