Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

SELECT query with PDO

// 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: #SELECT #query #PDO
ADD COMMENT
Topic
Name
6+9 =