function connectdb() {
$connect = new mysqli("localhost", "root", "", "rr");
$connect->set_charset( 'utf8');
return $connect;
}
$this->db->select('*');
$this->db->from('crawl');
$this->db->join('news', 'crawl.site_id = news.site_id');
$query = $this->db->get();
find . -type d -exec chmod 0755 {} \;
find . -type f -exec chmod 0644 {} \;
<?php
$xmlSign = new SimpleXMLElement('<?xml version="1.0" encoding="UTF-8"?><data/>');
$xml_user_info = $xmlSign->addChild('user', 'admin');
echo $xmlSign->asXML();
<?xml version="1.0" encoding="UTF-8"?>
<data><user>admin</user></data>