$number=1;
$sql="select * from tbpr where (jobname like '%วินัย%') order by prid desc limit 25 ";
$result=mysql_query($sql) or die(mysql_error());
while($row=mysql_fetch_array($result))
{
$number++;
?>
$number2=1;
$sql2="select * from tbruledoc order by rdorder desc";
$result2=mysql_query($sql2) or die(mysql_error());
while($row2=mysql_fetch_array($result2))
{
$number2++;
?>
$number3=1;
$sql3="select * from tbrulelink order by rlorder desc";
$result3=mysql_query($sql3) or die(mysql_error());
while($row3=mysql_fetch_array($result3))
{
$number3++;
?>