I feel like I'm missing something.
I'm attempting to use the :
delimiter with bindParam and am coming up unsuccessful.
PHP:
$te = 'test';
$tesql = "select charname from characters where username = :user;";
$stmt = $db->prepare($tesql);
$stmt->bindParam(':user',$te,PDO::PARAM_STR,100);
$stmt->execute();
echo $stmt->queryString;
the queryString
shows:
select charname from characters where username = :user;
How can I get $te
to show in place of :user