[PHP] Little Problem with my Guestbook

2005-09-14 Thread Florian Paucke
Hi. I'm new to PHP. I need some help from you, because, I'm creating a guestbook. But I have a little problem. I have a table, where the different My-SQL-Entries are read out. But now I get only one Entry, but not more. How can do it, that the table read out 4 times, when 4 entries are in the

Re: [PHP] Little Problem with my Guestbook

2005-09-14 Thread Jasper Bryant-Greene
Florian Paucke wrote: I need some help from you, because, I'm creating a guestbook. But I have a little problem. I have a table, where the different My-SQL-Entries are read out. But now I get only one Entry, but not more. How can do it, that the table read out 4 times, when 4 entries are in

Re: [PHP] Little Problem with my Guestbook

2005-09-14 Thread Florian P.
?php include(sql.inc.php); include(config.inc.php); $connection = mysql_connect($sql['host'],$sql['uid'],$sql['pwd']); $select_db = mysql_select_db($sql['db']); $select = mysql_query('SELECT * FROM comments'); $data = mysql_fetch_array($select); $result = mysql_query('SELECT * FROM comments');

Re: [PHP] Little Problem with my Guestbook

2005-09-14 Thread John Nichel
Florian P. wrote: ?php include(sql.inc.php); include(config.inc.php); $connection = mysql_connect($sql['host'],$sql['uid'],$sql['pwd']); $select_db = mysql_select_db($sql['db']); $select = mysql_query('SELECT * FROM comments'); $data = mysql_fetch_array($select); $result =