Sunday, 15 September 2013

simplest way to echo one value of one row

simplest way to echo one value of one row

I have this simple query
$qry = "select MAX(image_id) from tpf_images";
$res = $pdo->query($qry);
the result of which is just one number. What is the quickest, simplest way
to echo that number out with php?
Thanks

No comments:

Post a Comment