View Single Post
Old 09-07-2021, 10:01 PM  
Publisher Bucks
Confirmed User
 
Industry Role:
Join Date: Oct 2018
Location: New Orleans, Louisiana. / Newcastle, England.
Posts: 1,123
Quote:
Originally Posted by k33n View Post
Code:
$sql = "select * from " . $table . " where id=?";

try
{
$stmt = $db->prepare($sql_str);
Replace $sql_str with $sql
K33n,

I gave that a try and its still showing a blank page, this is the error from the logs:

Quote:
#0 /blah/blah/domain.com/recipesnew.php(119): PDO->__construct('mysql:host=;dbn...', NULL, NULL, Array)
#1 /blah/blah/domain.com/recipesnew.php(18): hookitup()
#2 {main}
thrown in /blah/blah/domain.com/recipesnew.php on line 119
Publisher Bucks is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote