$linksQuery = $dbase->prepare("SELECT * from mytable WHERE mycolumn = ? order by mycolumn"); $linksQuery->execute(array('1')); PHP: for debugging i want to print query like this SELECT * from mytable WHERE mycolumn = 1 order by mycolumn Is it possible to get complete query using PDO?
Thanks for your help. Its printing "SELECT * from mytable WHERE mycolumn = ? order by mycolumn" Is it possible to get ? replaced with value 1?