hai...friends.... i need to know the code for showing the values of tables in the webpage wchich are selected from the database. if there are 3 row , 3 cloumn of data in the database, i need to show the 3 row 3 cloumn values inside a table in the webpage. i think for that need dyanamic display code is needed. so please anyone help me. i dont no much about php. Love and Prayer a v vishnu
$myQuery="SELECT id,name FROM customers WHERE age<25 limit 10"; //for example $myResult=mysql_query($myQuery); $numberOfRows=mysql_num_rows($myResult); if($numberOfRows!=0) echo "<table>"; while($row=mysql_fetch_assoc($myResult)){ echo "<tr><td>$row[id]</td><td>$row[name]</td></tr>"; } if($numberOfRows!=0) echo "</table>"; PHP: