Hi How I can set content a cell of database into a table in my page ? for example:
<table width="75%" border="1"> . . //content cell of database . . </tabel>
thanks
For example like this:
<table width="75%" border="1"> <tr bgcolor="#CCCCCC"> <td>Id</td> <td>Name</td> <td>Email</td> </tr> <?php $query="SELECT * FROM yourtable"; $result=mysql_query($query); while ($row=mysql_fetch_array($result)) { echo '<tr> <td>'.$row['id'].'</td> <td>'.$row['name'].'</td> <td>'.$row['email'].'</td> </tr>'; } ?> </table>
thanks cahva my problem solve .