Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Dylan Lopez
Added: Mar 5, 2018 9:07 AM
Modified: Mar 5, 2018 9:10 AM
Views: 14
  1. //Note: you need to manually escape query string
  2. //example: $this->db->escape($title)
  3.  
  4. $query_sql = "";
  5. $query_sql = $this->db->escape($query_sql)
  6. if ($this->db->simple_query($query_sql)){
  7.         echo "Success!";
  8. }
  9. else {
  10.         echo "Query failed!";
  11. }