Tricks, tips, tutorials, pictures and words

ONLamp.com -- Using MySQL from PHP

  1. Connecting to a MySQL Database From a development standpoint, connecting and executing queries from PHP is as simple as calling the appropriate functions. Let's look at the basic functions used in almost every database-driven application. As I have already explained, the first step is to connect to the database %u2014 in our case, this is done via the mysql_connect() function, whose syntax follows: mysql_connect([$server [, $username [, $password [, $new_link [, $flags]]]]])
  2. ONLamp.com -- Using MySQL from PHP