When i run it. i only see 1 records of customer and it says that the error is in " WHILE($cus = mysql_fetch_array($cus)){" Line.. anyone knows how to solve it? ..tnx
<table id="datatables" class="display">
<thead>
<tr>
<th>ID</th>
<th>FullName</th>
<th>Age</th>
<th>Gender</th>
<th>Email</th>
<th>Barangay</th>
<th>CompleteAddress</th>
<th>Username</th>
<th>Password</th>
</tr>
</thead>
<tbody>
<?php $cus = mysql_query("SELECT * FROM customer") or die(mysql_error()); ?>
<?php
WHILE ($cus = mysql_fetch_array($cus)) {
$id = $cus['cus_id'];
$email = $cus['email'];
$control = $cus['cus_id'];
$user = $cus['username'];
$pass = $cus['password'];
$brgy = $cus['barangay'];
$comadd = $cus['com_address'];
$age = $cus['age'];
$gend = $cus['gender'];
$fname = $cus['firstname'] . " " . $cus['middlename'] . " " . $cus['lastname'];
?>
<tr class="gradeA del<?php echo $id; ?>">
<td><?php echo $control; ?></td>
<td><?php echo $fname; ?></td>
<td><?php echo $age; ?></td>
<td><?php echo $gend; ?></td>
<td><?php echo $email; ?></td>
<td><?php echo $brgy; ?></td>
<td><?php echo $comadd; ?></td>
<td><?php echo $user; ?></td>
<td><?php echo $pass; ?></td>
</tr>
<?php
}
?>
</tbody>
</table>