At last (& at least) I'm now getting a value out of a query:
Code:
$stH = stPrep("SELECT * FROM schools ORDER BY ID DESC LIMIT 1");
stExec($stH,null);
$row = $stH->fetch(PDO::FETCH_NUM);
$newschool = $row[0];
echo '<pre>'; var_dump($newschool); echo '</pre>';
However var_dump returns
Code:
string(2) "11"
-- but all I want is the last digit(s). I suppose I could clean it with a regex, but isn't there a way to just get the value of that column? WTF is "string(2)"?
Oh. It worked. [extraneous stuff is what var_dump does]
EDITED: 4 Sep 2014 15:45 by DSMITHHFX