mysql PDO SET statement encounter errors

Orgargeattabs

New Member
I was looking for something that is related to a mysql query and I stumbled to this link mysql variable usage and saw the stored proc-like variable setting. I've tried it in phpmyadmin :SET @value = http://stackoverflow.com/questions/3803848/5;SELECT @rank;and it is working, but when I tried to place it in PDO statements, it does not work. \[code\] $value = "http://stackoverflow.com/questions/3803848/SET @value = 0"; $stmt = $this->_dbHandle->prepare($value); $stmt->execute();\[/code\]Kindly guide on what I am doing wrong.
 
Back
Top