Breaking News
Home / Web / PHP / PHP Snippets / How to connect and execute query against Mysql using Php?

How to connect and execute query against Mysql using Php?

PHP MYSQL Database ScriptA very basic and essential snippet for any one starting with php and mysql database i.e. to connect to a given database, execute a custom sql and retrieve the results. The snippet can be modified to execute more than one query or execute an update or insert command instead of the query. The following snippet show exactly how to do so..<!

 [pb_builder]

Check Also

How to list files in a directory in PHP?

<?php if ($handle = opendir(‘/path/to/directory’)) {     echo "Directory handle: $handlen";     echo …

Advertisment ad adsense adlogger