15 lines
344 B
PHP
15 lines
344 B
PHP
<?php
|
|
|
|
// select all users
|
|
|
|
$users = $conn->query("FROM User");
|
|
|
|
// 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'));
|
|
?>
|