📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
e-ticaretv11.demodesign.com.tr
/
propanel
/
model
/
entegrasyon
📝
question.php
← Geri Dön
<?php class ModelEntegrasyonQuestion extends Model { public function addQuestion($question, $code) { try { $this->db->query("INSERT INTO " . DB_PREFIX . "es_product_question SET code='" . $code . "', question_id='" . $question['id'] . "', `user`='" .$this->db->escape($question['user']). "', `product`='" .$this->db->escape($question['product']). "', is_rejected='" . $question['rejected'] . "', message='" . $this->db->escape($question['text']) . "', date_added='" . $question['created_date'] . "' "); } catch (Exception $exception) { echo $exception->getMessage(); } $last_insert_id = $this->db->getLastId(); return $last_insert_id; } public function updateQuestion($question) { $this->db->query("UPDATE " . DB_PREFIX . "es_product_question SET answered=0 where question_id='".$question['id']."'"); } public function updateRejectedQuestion($question) { $this->db->query("UPDATE " . DB_PREFIX . "es_product_question SET is_rejected=1 where question_id='".$question['id']."'"); } public function getQuestion($question_id) { $query = $this->db->query("select * from " . DB_PREFIX . "es_product_question where question_id='" . $question_id . "'"); return $query->row; } }
💾 Kaydet
İptal
📝 Yeniden Adlandır
İptal
Kaydet
🔐 Dosya İzinleri (chmod)
İzin Değeri:
Hızlı Seçim:
777
755
644
600
777
= Herkes okur/yazar/çalıştırır
755
= Sahip tam, diğerleri okur/çalıştırır
644
= Sahip okur/yazar, diğerleri okur
600
= Sadece sahip okur/yazar
İptal
Uygula