$PDO->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $zmienna = "INSERT INTO `comments` (`iduser`, `comment`, `nick_user`) VALUES (:iduser, :comment, :nick_user) where idpost= :idpost "; $stmt = $PDO->prepare($zmienna); $stmt->bindValue(':idpost', $article['id'], PDO::PARAM_INT );
PDO::PARAM_INT $zmienna = "INSERT INTO `comments` (`iduser`, `comment`, `nick_user`) VALUES (:iduser, :comment, :nick_user) where idpost= ".$article['id']." ";
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)