2006-07-24 01:08:06 +04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
// select all users
|
|
|
|
|
2006-09-29 15:49:50 +04:00
|
|
|
$users = $conn->query("FROM User");
|
2006-07-24 01:08:06 +04:00
|
|
|
|
|
|
|
// select all users where user email is jackdaniels@drinkmore.info
|
|
|
|
|
2006-09-29 15:49:50 +04:00
|
|
|
$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
|
|
|
?>
|