خرید بک لینک
Hi, I would like to run another query similar to the one blow straight after using the latest ID from this SQL statement

PHP Code:

public function Create($title$category$picurl)
    {
        
$query $this->db->prepare("INSERT INTO stl(title, category, picurl) VALUES (:title,:category,:picurl)");
        
$query->bindParam("title"$titlePDO::PARAM_STR);
        
$query->bindParam("category"$categoryPDO::PARAM_STR);
        
$query->bindParam("picurl"$picurlPDO::PARAM_STR);
        
$query->execute();
        return 
$this->db->lastInsertId();
    } 

برچسب: نویسنده: آیلین رضوانی تاريخ: يکشنبه 12 آذر 1396 ساعت: 19:12

صفحه بندی