Home  >  Article  >  Backend Development  >  MySQL database export php adodb operates mysql database

MySQL database export php adodb operates mysql database

WBOY
WBOYOriginal
2016-07-29 08:39:381059browse

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

Copy the code The code is as follows:


include( "adodb/adodb.inc.php"); //Contains adodb class library file
$conn = NewADOConnection('mysql'); //Create 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());
?>

The above introduces the MySQL database export and PHP adodb operation of the MySQL database, including the content of MySQL database export. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
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