$link = new PDO("mysql:host=localhost;dbname=fashion",'root','');
$stmt=$link->prepare("select * from stylestatement where id='".$_REQUEST["you"]."'");
if ($stmt->execute(array($_GET['title']))) {
$row=$stmt->fetch();
$newstmt=$link->prepare("select * from images where `statementid`='".$_REQUEST["you"]."' and `added_on`='".$row["created_on"]."'");
$newstmt->execute();
echo($newstmt->rowCount());
}
在上面的代码中,即使我在图像表中有相同的日期时间,我也得到了 result=0,为什么?