Adoddbphp database universal engine class-PHP source code

Source: Internet
Author: User
Ec (2); 1. PHPADODB address connection to database tutorial 2. PHPADODB object access to database content 3. PHPADODBHTML code display content 4. PHPADODB Automatic Content paging & nbsp; & nbsp; include_once (& quot; adodb5adodb. inc. php tutorial & quot;); & nbsp; * script ec (2); script

1. php adodb address connection tutorial
2. Obtain database content using php adodb objects
3. php adodb html code display content
4. php adodb Enables automatic content Paging


Include_once ("adodb5/adodb. inc. php tutorial ");

/* $ Db = NewADOConnection ('mysql Tutorial: // root: @ localhost/upload ');
$ SQL = "SELECT * FROM 'pic "';
$ Db-> SetFetchMode (ADODB_FETCH_ASSOC );
// Mysql_fetch_array ()
$ Sr1 = $ db-> Execute ($ SQL );
Print_r ($ sr1-> fields );
*/

$ Db = NewADOConnection ('mysql ');
$ Db-> PConnect ("localhost", "root", "", "upload ");
$ SQL = "SELECT * FROM 'pic "';
$ Rs2 = $ db-> Execute ($ SQL );
While ($ row = $ rs2-> FetchNextObject ()){
Echo $ row-> NAME;
}
*/

Include_once ("adodb5/adodb-pager.inc.php ");
Session_start ();
$ Db = NewADOConnection ('mysql ');
$ Db-> Connect ("localhost", "root", "", "upload ");
$ Db-> Execute ("set names 'gbk '");

$ SQL = "SELECT * FROM 'pic "';
$ Pager = new ADODB_Pager ($ db, $ SQL );
$ Pager-> Render (2 );

/*
Include_once ("adodb5/tohtml. inc. php ");
$ Db = NewADOConnection ('mysql ');
$ Db-> Connect ("localhost", "root", "", "upload ");
$ SQL = "SELECT * FROM 'pic "';
$ Rs2 = $ db-> Execute ($ SQL );
Echo rs2html ($ rs2 );
*/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.