establishe a connection with the MySql database
Posted: Thu Dec 04, 2008 12:46 am
i want to establish a connection with the MySql database.
here is my code
<?php
$mysql_link = mysql_connect('localhost', 'root', 'root');
mysql_select_db('mysql') or die('Could not select database');
$images_dir = 'photos';
?>
whats wrong
here is my code
<?php
$mysql_link = mysql_connect('localhost', 'root', 'root');
mysql_select_db('mysql') or die('Could not select database');
$images_dir = 'photos';
?>
whats wrong