Posted by Richard Lynch on 02/18/05 19:24
David Freedman wrote:
> I am trying my FIRST php file with an attempt to connect
> to my mySql server.
>
> <?php
> // Connecting, selecting database
> $link = mysql_connect('localhost', 'host', 'my_passqword')
> or die('Could not connect: ' . mysql_error());
Does this print out anything?
Is it more than just 'Could not connect: '?
What does it say?
--
Like Music?
http://l-i-e.com/artists.htm
[Back to original message]
|