PHP Magic Book – Free PHP Scripts, Tutorials and Downloads, PHP AtoZ Reloaded, free php tutorials, free php downloads, php scripts, PHP tips

Archive for the ‘ MySQL ’ Category

PHP Easy Most Database Connection

Setting up a database connection can be a difficult task if you google through different codes present online. Here is the easy most method to create a dbconnection for PHP and mysql.

(more…)

Tags: ,
Posted in: MySQL, connection, database, php mySQL
Post's RSS » RSS 2.0
Post's Comments RSS » RSS 2.0
Respond: Post A Comment

Adding Record In Database Using PHP

Create a file index.php and insert.php. Also create a DataBase with some name lets say mydb in mysql. After creating database named as mydb add a table named as mydbtb in it with four fields. If you do not know about mysql then just open it and create a database mydb in it and run this query in it from query window.

(more…)

Tags: , , , , ,
Posted in: MySQL, php mySQL
Post's RSS » RSS 2.0
Post's Comments RSS » RSS 2.0
Respond: Post A Comment

Detecting Database And MySQL Connections in PHP – PHP DBConnection

This example describes that how we can find that database and mySQL connections are established or not and what to do if one of the connections is not established. First we define dbuser, dbpassword and database name and then create a db connection and mysql connection and then check these if these are established and script can find the database and mysql. In case it can not locate any of these then we just tell the script to exit and stop proceeding.

(more…)

Tags: , , ,
Posted in: MySQL, php mySQL
Post's RSS » RSS 2.0
Post's Comments RSS » RSS 2.0
Respond: Post A Comment

How to Close mySQL Connections in a Right Way

After execution of mysql query its appropriate (even essential) to close mySQL connection. Use the following script to close mySQL connection.

(more…)

Tags: ,
Posted in: MySQL
Post's RSS » RSS 2.0
Post's Comments RSS » RSS 2.0
Respond: Post A Comment

    


  Subscribe Via RSS
  Subscribe Via Email