- Impact
- 20
PHP:
<?
$username = "username";
$password ="password";
$db = "db";
$conn = mysql_connect("localhost", "$username", "$password") or die(mysql_error());
mysql_select_db("$db", $conn) or die (mysql_error());
?>
Once you have php,mysql working you can add this to a php file to use the database
you may also need other tools such as phpmyadmin www.phpmyadmin.net to help generate the mysql queries and make/delete/edit/change databases