$query = "INSERT INTO `saved_feed_".$_SESSION['id']."` (title,description,link,pub_date,img_link) VALUES (:?,:?,:?,:?,:?)";
echo $query;
$stmt = $dbh->prepare($query);
$stmt->bindParam(1,$title,PDO::PARAM_STR);
$stmt->bindParam(2,$desc,PDO::PARAM_STR);
$stmt->bindParam(3,$link,PDO::PARAM_STR);
$stmt->bindParam(4,$pub_date,PDO::PARAM_STR);
$stmt->bindParam(5,$img_link,PDO::PARAM_STR);
$stmt->execute();
echo $title.'<br>'.$desc.'<br>'.$link.'<br>'.$pub_date.'<br>'.$img_link;
Hint:
$_SESSION['id']
value of the code above is 23 in this case.
The variable are all set, in fact if I echo
them I can see all the values, but in the database nothing happen.
This is a screenshot of the table