php adodb operates mysql database_PHP tutorial

WBOY
Release: 2016-07-21 15:46:55
Original
857 people have browsed it

The premise is to go here: http://sourceforge.net/project/showfiles.php?group_id=42718&package_id=220409&release_id=649609

Copy code The code is as follows:

include("adodb/adodb.inc.php"); //Include adodb class library file
$conn = NewADOConnection( 'mysql'); //Create a database connection object
$conn -> debug =true;
$conn -> Connect('localhost', 'root', '1981427','test' ); //Connect to the database
$rs=$conn->execute ("select *from tablename1");
print_r($rs->GetRows());

?>

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/320055.htmlTechArticleThe premise is here: http://sourceforge.net/project/showfiles.php?group_id=42718release_id= 649609 Copy the code as follows: ?php include("adodb/adodb.inc.php"); //Include adodb class library...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!