hi friends, How can i display messages from mysql databse in each rows with delete button and reply button in PHP. Please help me... no codes working properly, thanks in advance.
Well it all depends... There is no magic code that will do that for you, however if your DB is properly designed, you will have an index on each row and the field will be called something like id. Then the code should look like: foreach ($rows as $row) { echo $row['name'] . ' <a href="./myscript.php?id=' . $row['id'] . '&action=delete">delete</a> <a href="./myscript.php?id=' . $row['id'] . '&action=reply">reply</a>'; } Code (markup): But again, it is hard to make sure this will apply to your site... aXe