我的数据不是没有从数据库中获取。我不知道为什么。
mysql_connect("localhost","root","");
mysql_select_db("managment");
$q=mysql_query("select name,father_name,dob,qualification,identity_type,identity_no,gender,email,address1,city,state,country,phone_no,mobile_no,emergency_no,relation,address from employee");
echo <table border='1'>
<tr>
<th>NAME</th>
<th>Fathet Name</th>
<th>Dob</th>
<th>Qualification</th>
<th>Identity Type</th>
<th>Identity No</th>
<th>Gender</th>
<th>Email</th>
<th>address</th>
<th>City</th>
<th>State</th>
<th>COUNTRY</th>
<th>Phone</th>
<th>Mobile</th>
<th>Emergency No</th>
<th>Relation</th>
<th>Address</th>";
while($row=mysql_fetch_array($q));
{
echo "<tr>
<td>$row[name]</td>
<td>$row[father_name]</td>
<td>$row[dob]</td>
<td>$row[qualification]</td>
<td>$row[identity_type]</td>
<td>$row[identity_no]</td>
<td>$row[gender]</td>
<td>$row[email]</td>
<td>$row[address1]</td>
<td>$row[city]</td>
<td>$row[state]</td>
<td>$row[country]</td>
<td>$row[phone_no]</td>
<td>$row[mobile_no]</td>
<td>$row[emergency_no]</td>
<td>$row[relation]</td>
<td>$row[address]</td>
</tr><br>";
}
echo "</table>";