1
0
mirror of synced 2024-12-15 15:46:02 +03:00
doctrine2/manual/codes/Basic Components - Connection - Querying the database.php

15 lines
344 B
PHP
Raw Normal View History

2006-07-24 01:08:06 +04:00
<?php
// select all users
$users = $conn->query("FROM User");
2006-07-24 01:08:06 +04:00
// select all users where user email is jackdaniels@drinkmore.info
$users = $conn->query("FROM User WHERE User.Email.address = 'jackdaniels@drinkmore.info'");
// using prepared statements
$users = $conn->query("FROM User WHERE User.name = ?", array('Jack'));
2006-07-24 01:08:06 +04:00
?>