Got rid of MySQL, fixed bugs in text module
This commit is contained in:
parent
98a80154e9
commit
402a66900e
6 changed files with 62 additions and 265 deletions
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
/**
|
||||
* Project: astat - simple site engine
|
||||
* Project: BeCast WebEngine - simple site engine
|
||||
* File: /core/database/mysqli.class.php
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
|
@ -17,16 +17,16 @@
|
|||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*
|
||||
* @link http://www.astat.org SVN: $URL: http://svn.astat.org/astat/trunk/core/database/mysqli.class.php $
|
||||
* @copyright 2025 becast.at
|
||||
* @link http://www.becast.at
|
||||
* @copyright 2009-2025 becast.at
|
||||
* @author Bernhard Jaud <bernhard at becast dot at>
|
||||
* @package astat core
|
||||
* @package BcWe core
|
||||
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
||||
* @version $Id: mysqli.class.php 126 2010-02-21 21:07:52Z genuineparts $
|
||||
*/
|
||||
* @version $Id$
|
||||
*/
|
||||
|
||||
$module["db"]["name"]="Database Class (mysqli)";
|
||||
$module["db"]["ver"]="1.0.1";
|
||||
$module["db"]["ver"]="1.0.2";
|
||||
class db {
|
||||
var $mysqli;
|
||||
var $host="";
|
||||
|
@ -119,31 +119,23 @@ class db {
|
|||
|
||||
function querys(){
|
||||
return $this->abfragen;
|
||||
}
|
||||
}
|
||||
|
||||
function num_rows($result){
|
||||
$rows = $result->num_rows;
|
||||
return $rows;
|
||||
}
|
||||
return $result->num_rows;
|
||||
}
|
||||
|
||||
function fetch_row($result){
|
||||
$row = $result->fetch_row();
|
||||
return $row;
|
||||
}
|
||||
return $result->fetch_row();
|
||||
}
|
||||
|
||||
function fetch_array($result){
|
||||
|
||||
$row = array();
|
||||
$row = $result->fetch_array(MYSQLI_ASSOC);
|
||||
return $row;
|
||||
}
|
||||
return $result->fetch_array(MYSQLI_ASSOC);
|
||||
}
|
||||
|
||||
function fetch_array_num($result){
|
||||
|
||||
$row = array();
|
||||
$row = $result->fetch_array(MYSQLI_NUM );
|
||||
return $row;
|
||||
}
|
||||
return $result->fetch_array(MYSQLI_NUM);
|
||||
}
|
||||
|
||||
function escape($string){
|
||||
$return = $this->mysqli->real_escape_string($string);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue