Php query

sudiphans

Broken In
hai friends,

i have written a code in php to output a data in my webpage by taking the data from mysql database. The data I want to be formatted as tabled output .

I have written a html page which takes the employee id and furnish the details of that employee.

please help me how could i show the single row output in tabled form using php.
 

krishnandu.sarkar

Simply a DIGITian
Staff member
PHP:
<html>
<head>
<title></title>
</head>

<body>
<table>
<tr>
<td>Employee ID</td>
<td>Employee Name</td>
</tr>
<tr>
<?php
echo "<td>" . $row['empid'] . "</td>";
echo "<td>" . $row['empname'] . "</td>";
?>
</tr>
</table>
</body>
</html>
 
Top Bottom