[0323]_Azure_2写真_第〇位で似ていますDB★

///////
//SELECT display
///////
$sql0 = <<query($sql0);
$result0 = $stmt0->fetch(PDO::FETCH_NUM);

$sql1 = <<query($sql1);
$result = $stmt1->fetch(PDO::FETCH_NUM);

$sql2 = ‘SELECT count(*) FROM verify_t_rank ‘;
$stmt2 = $dbh->query($sql2);
$result2 = $stmt2->fetch(PDO::FETCH_NUM);

$sql3 = ‘SELECT rank FROM verify_t_rank WHERE (id = (select MAX( id ) from verify_t))’;
$stmt3 = $dbh->query($sql3);
$result3 = $stmt3->fetch(PDO::FETCH_NUM);

print(‘
‘);

print(‘このPhoto比較は、全’.$result2[0].”件のうち
“);
print(‘第 ‘.$result3[0].”位で似ています!
“);

///////