Display value of bindParam using PHP PDO

Sobsoft

New Member
Is there an easy way to echo the value stored in a bound parameter.\[code\]$sql ="call storedproc(:firstname, :lastname)";$stmt = $this->DBH->prepare($sql);$stmt->bindParam(':firstname', $fname);$stmt->bindParam(':lastname', $lname);//I want to do thisecho $stmt->firstname;$stmt->execute;\[/code\]
 
Back
Top