public function StrQuery($sql,$type=1)
{
$db = new MySQLi($this->host,$this->uid,$this->pwd,$this->dbname);
$r = $db->query($sql);
if($type=1)
{
$arr = $r->fetch_all();
$str = "";
foreach($arr as $v)
{
$str.= implode("^",$v)."|";
}
return substr($str,0,strlen($str)-1);
else
{
return $r;
}
}
}