Re: [PHP] My FIRST php atempt

2005-02-18 Thread Richard Lynch
David Freedman wrote: > I am trying my FIRST php file with an attempt to connect > to my mySql server. > > // 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 t

Re: [PHP] My FIRST php atempt

2005-02-18 Thread M. Sokolewicz
M. Sokolewicz wrote: Bret Hughes wrote: On Fri, 2005-02-18 at 01:47, David Freedman wrote: I am trying my FIRST php file with an attempt to connect to my mySql server. // Performing SQL query $query = 'SELECT * FROM my_table'; $result = mysql_query($query) or die('Query failed: ' . mysql_error());

Re: [PHP] My FIRST php atempt

2005-02-18 Thread M. Sokolewicz
Bret Hughes wrote: On Fri, 2005-02-18 at 01:47, David Freedman wrote: I am trying my FIRST php file with an attempt to connect to my mySql server. // Performing SQL query $query = 'SELECT * FROM my_table'; $result = mysql_query($query) or die('Query failed: ' . mysql_error());

Re: [PHP] My FIRST php atempt

2005-02-18 Thread Bret Hughes
On Fri, 2005-02-18 at 01:47, David Freedman wrote: > I am trying my FIRST php file with an attempt to connect > to my mySql server. > > // Connecting, selecting database > $link = mysql_connect('localhost', 'host', 'my_passqword') >or die('Could not connect: ' . mysql_error()); > echo 'Connec

[PHP] My FIRST php atempt

2005-02-17 Thread David Freedman
I am trying my FIRST php file with an attempt to connect to my mySql server. The problem is it won't connect to the database. The server IS running. The host, username, and password are the exact same thing I use to connect the mySqlAdmin tool to the database. Doesn't seem like this should be th