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