Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php query 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: #php #query #pdo
ADD COMMENT
Topic
Name
3+7 =