Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

PDO select

$sql = 'SELECT publisher_id, name 
		FROM publishers
        WHERE publisher_id = :publisher_id';

$statement = $pdo->prepare($sql);
$statement->bindParam(':publisher_id', $publisher_id, PDO::PARAM_INT);
$statement->execute();
$publisher = $statement->fetch(PDO::FETCH_ASSOC);
Source by phpdelusions.net #
 
PREVIOUS NEXT
Tagged: #PDO #select
ADD COMMENT
Topic
Name
9+9 =