PHP Tutorial : Connecting to MySQL database via PHP

In this tutorial I will speak first time about php programming language and MySQL database engine togheter. I will show and explain how simple is to connect to a mysql server via php using a simple functio called mysql_connect().

mysql_connect('localhost', 'mysql_database_user', 'mysql_db_password') or die("not connected to db");
This entry was posted in Php & MySQL and tagged , , . Bookmark the permalink.

One Response to PHP Tutorial : Connecting to MySQL database via PHP

  1. Pingback: PHP Tutorials - Crivion’s Blog » Blog Archive » PHP Tutorial : Membership script - Users Registration

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>