public function Create($title, $category, $picurl)
{
$query = $this->db->prepare("INSERT INTO stl(title, category, picurl) VALUES (:title,:category,:picurl)");
$query->bindParam("title", $title, PDO::PARAM_STR);
$query->bindParam("category", $category, PDO::PARAM_STR);
$query->bindParam("picurl", $picurl, PDO::PARAM_STR);
$query->execute();
return $this->db->lastInsertId();
}
برچسب:
نویسنده: آیلین رضوانی