tomjmcdaniel/Test-Project — Issue #1: Your Code Hosed My Production Database!!! 
Author: bseanvt
Created: 2012-01-19 21:28:13+00:00
State: open

``` bash
Fatal error: Uncaught exception ‘Exception’ with message ‘String could not be parsed as XML’ in /home/.sites/65/site1124/web/system/cms/modules/blog/views/index.php:3 Stack trace: #0 /home/.sites/65/site1124/web/system/cms/modules/blog/views/index.php(3): SimpleXMLElement->__construct(‘http://www.smed…’, 0, true) #1 /home/.sites/65/site1124/web/system/cms/libraries/MX/Loader.php(308): include(’/home/.sites/65…’) #2 /home/.sites/65/site1124/web/system/cms/libraries/MX/Loader.php(256): MX_Loader->_ci_load(Array) #3 /home/.sites/65/site1124/web/system/cms/libraries/MY_Parser.php(43): MX_Loader->view(‘index’, Array, true) #4 /home/.sites/65/site1124/web/system/cms/libraries/Template.php(804): MY_Parser->parse(‘index’, Array, true) #5 /home/.sites/65/site1124/web/system/cms/libraries/Template.php(768): Template->_load_view(‘index’, Array, true) #6 /home/.sites/65/site1124/web/system/cms/libraries/Template.php(254): Template->_find_view(‘index’, Array, true) #7 /home/.sites/65/site1124/web/system/cms/modules/blog/controller in /home/.sites/65/site1124/web/system/cms/modules/blog/views/index.php on line 3
```

``` php
function insert($table, $data_array) {
$res = $this->db->insert($table,$data_array);
if (!$res) {
$errNo = $this->db->_error_number();
$errMess = $this->db->_error_message();
}
return array('ErrorN'=>$errNo,
'ErrorM'=>$errMess);
}
...
// need to implement delete update get getwhere etc
```