Page 1 of 1

How to display messages from mysql database in each rows?

Posted: Sun May 02, 2010 6:11 am
by ashfaqbinnazar
hi friends,
How can i display messages from mysql databse in each rows with delete button and reply button.
Please help me...
no codes working properly,
thanks in advance.

Re: How to display messages from mysql database in each rows

Posted: Sun May 02, 2010 7:17 am
by Darhazer
Show the non-working code...

Code: Select all

 // First you need to select the rows with a query:
$result = mysql_query(<YOUR_QUERY>);
// then iterate through the results
while ($row = mysql_fetch_row($result)) {
    echo $row['message'];
    // here you can output the button as well
}
 

Re: How to display messages from mysql database in each rows

Posted: Sun May 02, 2010 7:24 am
by Benjamin
:arrow: Duplicate = Locked