PHP Tutorials

Whether just getting started or an expert, this vast collection of PHP tutorials will help you create dynamic content for powerful web-based applications in no time.

Results via Envato Market

By Peter Moulding on November 7, 2000 You have a web site with pages accessing a database. You want to use PHPLIB, but do not want to change your existing database to suit. Here is the answer to your dreams. PHPLIB and multiple databases. This set up requires an extension…

By Peter Moulding on November 7, 2000 Including PHPLIB PHPLIB accesses SQL databases through a class named DB_Sql. You include the version for your database in your code. I use the MySQL version in this example. To get DB_Sql in to your code, install the PHPLIB files in their own…

By Peter Moulding on November 7, 2000 Expanding PHPLIB PHPLIB accesses databases through an object created from class DB_Sql. Db_mysql.inc includes the DB_Sql class as modified for MySQL. We will extend DB_Sql by adding code to common.php3, after the line that includes db_mysql.inc. DB_Sql contains many functions to perform queries….

By Peter Moulding on November 7, 2000 Changing the code to handle multiple databases is more complex. You have to change the query functions, as well as the connect and select. You might want to read up on PHP’s ODBC connection, then use the ODBC option in PHPLIB. ODBC handles…

By Peter Moulding on November 7, 2000 PHPLIB writes cookies. A print statement in the middle of PHPLIB may produce error messages about problems writing HTTP headers. Ignore the errors or write the diagnostic messages to a disk file. Start with: $db_log_file = “t:/diag.txt”; …or similar. Point to a text…