im a php newbie and i need some help with tabluar pagination. i want to display the results of my query in a table. i actually came up with this code:
Code: Select all
while ($row = mysql_fetch_assoc($result)){
$job_id = $row['job_id'];
$job_title = $row['job_title'];
$post_date = $row['post_date'];
echo "<table border='1'>";
echo "<TR>";
echo "<TH> </TH><TH><STRONG>Job Title</STRONG></TH><TH><STRONG>Post date</STRONG></TH>";
echo "</TR>";
//the link of the job title is given, when the user clicks on it, we issue another querry
echo "<TR>";
echo "<TD>";
echo "<form METHOD='POST' ACTION='deletejob.php>";///check box to delete job from database
echo "<input type='CHECKBOX' name='job_id'>";
echo "<input type='submit' value='delete'>";
echo "</form></TD>";
echo "<TD><a href=jobinfo.php?job_id=".$job_id.">$job_title</a></TD>";
echo "<TD>$post_date</TD>";
echo "</TR>";
echo "</table>";
}
what can i do to create a uniform table where the contents of each cell would have to wrap to fit the table cell?
can anyone also help me with pagination?
examples, suggestions and resources would be kindly appreciated.
thankx