Return to Snippet

Revision: 4219
at November 8, 2007 12:27 by jrphelps


Initial Code
$username="username";
$password="password";
$database="your_database";
$table="your_table";

mysql_connect(localhost,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query="SELECT * FROM $table";
$result=mysql_query($query);

Initial URL
http://www.freewebmasterhelp.com/tutorials/phpmysql/4

Initial Description

                                

Initial Title
PHP MySQL Starting Point

Initial Tags
mysql, php

Initial Language
PHP