JDP 發表於 2013-4-2 16:18:35

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]
查看完整版本: PDO Select