在下面,我将谈论 $val1。$val1 也准备好了吗?
$sql = "SELECT * FROM table WHERE col1=:var1 LIMIT 1";
$q = $conn->prepare($sql);
$q->execute(array(':var1'=>$val1));
在下面,我将谈论 $val1。$val1 也准备好了吗?
$sql = "SELECT * FROM table WHERE col1=:var1 LIMIT 1";
$q = $conn->prepare($sql);
$q->execute(array(':var1'=>$val1));