PDO Select
取單筆值$dbh = new PDO($CHUconn, $CHUid, $CHUpw);$query = 'SELECT NEWID()';
$stmt = $dbh->prepare($query);
$stmt->execute();
$result = $stmt->fetch();
echo $result;Reference: http://stackoverflow.com/questions/5456626/php-pdo-returning-single-row
頁:
[1]