Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

PHP PDO Select

// select a particular user by id
$id = 1 ;
$stmt = $pdo->prepare("SELECT * FROM users WHERE id=?");
$stmt->execute([$id]); 
$user = $stmt->fetch();
Source by phpdelusions.net #
 
PREVIOUS NEXT
Tagged: #PHP #PDO #Select
ADD COMMENT
Topic
Name
6+6 =