Re: My FIRST php atempt

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux