using (-) dash in mysql table name -


there error while want backup database

a database error occurred  error number: 1064  have error in sql syntax; check manual corresponds mysql server version right syntax use near '-01-000001' @ line 1  select * temp_01-01-000001  filename: f:\xampp\htdocs\erp_zaara\system\database\db_driver.php  line number: 330 

is there way solve prob table name (temp_01-01-000001).

you edit line 132 of file /system/database/drivers/mysql/mysql_utility.php

from:

$query = $this->db->query("select * $table"); 

to:

$query = $this->db->query("select * `$table`"); 

Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -