function newpage($user_id,$page_title,$page_name,$page_content){
if(!$stmt=$this->_conn->prepare("INSERT INTO pages(user_id,heading,name,content,created)values(?,?,?,?,NOW())")){
echo $this->_conn->error;
}
$stmt->bind_param('isss',$user_id,$page_title,$page_name,$page_content);
if(!$stmt->execute()){
return false;
}else{
return true;
}
}
herhangi bir sorun, mysqli tablolarını kullanılır) (YAPIN ile hazırlanmak "acı olarak değiştirilir (20)"hatası: Mysqli sorgu NOW() 'yarattı' Geçerli time..in mysql db için içerirler, sorguda
hata
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 Fatal error: Call to a member function bind_param() on boolean in C:\program data2\xampp\htdocs\engine\admin\cms.class.php on line 15
**
Solved...
**
olduğu
CURRENT_TIMESTAMP 'sütun üzerinde kısıtlama' bu şekilde created' sen NOW() ' –