Re: [PHP] Little Problem with my Guestbook

2005-09-14 Thread John Nichel
Florian P. wrote: No reason to run this twice $data = array(); if ( $result = mysql_query ( 'SELECT * FROM comments' ) ) { while ( $temp = mysql_fetch_array ( $result, MYSQL_ASSOC ) ) { $data[] = $temp; } $rows = mysql_num_rows ( $result );

Re: [PHP] Little Problem with my Guestbook

2005-09-14 Thread Florian P.
ID: Name: Titel: Kommentar: Thats the code i have written. And I would like to post the how often I have SQL-entries in my database. I hope you understand what I would like to say. And in each cycle it ought to put out the next entry of the database.

Re: [PHP] Little Problem with my Guestbook

2005-09-13 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 the

[PHP] Little Problem with my Guestbook

2005-09-13 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 d