MySQL 썸네일형 리스트형 PDO 예제 Example#1 Connecting to MySQL$dbh = new PDO('mysql:host=localhost;dbname=test', $user, $pass);?>Example#2 Handling connection errorstry { $dbh = new PDO('mysql:host=localhost;dbname=test', $user, $pass); foreach ($dbh->query('SELECT * from FOO') as $row) { print_r($row); } $dbh = null;} catch (PDOException $e) { print "Error!: " . $e->getMessage() . ""; .. 더보기 Ubuntu에 Python 웹프로그래밍 구축 (Ubuntu Lamp-Server Mod_Python) 보호되어 있는 글입니다. 더보기 이전 1 다음