<?php class db { var $db; var $position=0; function sub_sql($str) { global $prefix; return str_replace("detest_",$prefix,$str); } function Sql($str) { $str=$this->sub_sql($str); $result = mysql_query($str); $i=0; while($row = mysql_fetch_array($result)) { $str_array[$i]=$row; $i++; } if(empty($str_array)) { $str_array=array(); } $this->db=$str_array; }
This is a MYSQL database operation class. Friends can download it and use it.
All resources on this site are contributed by netizens or reprinted by major download sites. Please check the integrity of the software yourself! All resources on this site are for learning reference only. Please do not use them for commercial purposes. Otherwise, you will be responsible for all consequences! If there is any infringement, please contact us to delete it. Contact information: admin@php.cn
Related Article

06Jul2016
PHP value mysql operation class, php value mysql. PHP value mysql operation class, php value mysql ?php/** * Created by PhpStorm. * User: Administrator * Date: 2016/6/27 * Time: 18:55 */Class Mysqls{ private $table; //table private $opt; public f

13Dec2024
Linking Static Libraries to Other Static Libraries: A Comprehensive ApproachStatic libraries provide a convenient mechanism to package reusable...

12Jul2016
PHP value mysql operation class, php value mysql. PHP value mysql operation class, php value mysql ?php/** * Created by PhpStorm. * User: Administrator * Date: 2016/6/27 * Time: 18:55 */Class Mysqls{ private $table; //table private $opt; public f

28Oct2024
Suppression of Tensorflow Debugging OutputTensorflow prints extensive information about loaded libraries, found devices, and other debugging data...

03Jan2025
Overflow: Hidden and Expansion of HeightjQuery distinguishes itself from other JavaScript libraries through its cross-platform compatibility and...

30Oct2024
Native Java Image Processing Libraries for High-Quality ResultsAs you have encountered limitations with ImageMagick and JAI, let's explore other...


Hot Tools

PHP library for dependency injection containers
PHP library for dependency injection containers

A collection of 50 excellent classic PHP algorithms
Classic PHP algorithm, learn excellent ideas and expand your thinking

Small PHP library for optimizing images
Small PHP library for optimizing images
