|
|
|
แบ่งหน้าไม่ได้ครับ ผมใช้ code แบบนี้ครับในการแสดงแบบ arry แต่ทำเป็นแบบแบ่งหน้าไม่ได้ครับ |
|
|
|
|
|
|
|
ผมใช้ code แบบนี้ครับในการแสดงแบบ arry แต่ทำเป็นแบบแบ่งหน้าไม่ได้ครับ พี่ช่วยด้วยครับ
<?
include("dbconf.php");
if($link){
$query="select*from packet ";
$data_query=mysql_query($query,$link);
?>
</span></span></div></td>
</tr>
<?
while($arr=mysql_fetch_row($data_query))
{
?>
<tr align="center" bordercolor="#CCCCCC" class="style75">
<td height="211" bordercolor="#0000FF">
<div align="left">
<table width="100%" height="209" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><img src="images/box_big_bottom2.gif" width="729" height="8"></td>
</tr>
<tr>
<td height="65" background="images/box_big_bg1.gif"><TABLE cellSpacing=0 cellPadding=0 width=728 border=0>
<TBODY>
<TR>
<TD width="775" height="190" align=middle background=images/box_big_bg1.gif><table width="88%" height="197" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="2%" height="37"><table width="100%" border="0" cellpadding="0" cellspacing="0">
</table> </td>
<td width="19%"><span class="style20"><span class="style133"><span class="style6"><img src="head_everyday_1_02.gif" width="125" height="37"></span></span></span></td>
<td width="43%"><div align="center" class="style111">
<div align="left"><span class="style52"> </span>
<div align="center" class="style98 style96 style107 style75 style112 style115 style116">
<p><span class="style133">รหัสโปรแกรม</span><? echo $arr[1] ?><span class="style52">ชื่อโปรแกรม</span><? echo "<a href ='pac_link?pac_ID=$arr[0]'>".$arr[2] ?></p>
</div>
<div align="center"></div>
</div>
</div></td>
<td width="36%"><table width="60%">
<tr>
<td width="50%"><div align="left">จำนวนที่นั่ง </div></td>
<td width="50%"><div align="left"><span class="style111"><? echo "<center>",$arr[7] ?></span></div></td>
</tr>
</table></td>
</tr>
<tr>
<td rowspan="5"> </td>
<td rowspan="5"><table width="141" height="92" border="1" align="left" bordercolor="#CCCCCC">
<tr>
<td height="86"><? echo "<a href ='pac_show?pac_ID=$arr[0]'>"?><img src="picture/<? echo $arr[12] ?>" width="117" height="79"></td>
</tr>
</table></td>
<td rowspan="3"><span class="style111"><? echo $arr[9]?></span></td>
<td height="22"> </td>
</tr>
<tr>
<td height="22"> </td>
</tr>
<tr>
<td height="22"> </td>
</tr>
<tr>
<td height="22"> </td>
<td> </td>
</tr>
<tr>
<td height="31"><div align="left">
<table width="295">
<tr>
<td width="54"><span class="style111">วันที่ไป</span></td>
<td width="73"><span class="style111"><? echo "<center>",$arr[3] ?></span></td>
<td width="60"><span class="style111">วันที่กลับ</span></td>
<td width="88"><span class="style111"><? echo "<center>",$arr[4] ?></span></td>
</tr>
</table>
</div></td>
<td><table width="206" align="right">
<tr>
<td width="89"><span class="style111">ระยะเวลาไป</span></td>
<td width="49"><span class="style111"><? echo "<center>",$arr[5] ?>วัน</span></td>
<td width="52"><span class="style111"><? echo "<center>",$arr[6] ?>คืน</span></td>
</tr>
</table></td>
</tr>
<tr>
<td height="39"> </td>
<td><div align="center">ประเภทของการท่องเที่ยว<span class="style111"><? echo "<center>",$arr[8] ?></span></div></td>
<td><div align="right">จองบุคคลทั่วไป<span class="style111"><img style="CURSOR: hand"
onClick="window.open('book2', '', 'width=415,height=480,status=no,toolbar=no,menubar=no,scrollbars=yes,resizable=no');"
height="27"
src="images/book_on_white.gif"
width="62" vspace="2" border="0" /><img src="images/book_on_white.gif" width="62" height="27"></span>ราคา(บาท)</div></td>
<td><table width="178" align="right">
<tr>
<td width="34"><span class="style111">ผู้ใหญ่</span></td>
<td width="40"><span class="style111"><? echo "<center>",$arr[10] ?></span></td>
<td width="25"><span class="style111">เด็ก</span></td>
<td width="59"><span class="style111"><? echo "<center>",$arr[11] ?></span></td>
</tr>
</table></td>
</tr>
</table></TD>
</TR>
</TBODY>
</TABLE></td>
</tr>
<tr>
<td height="9"><img src="images/box_big_bottom.gif" width="727" height="9"></td>
</tr>
</table>
</div></td>
</tr>
<?
}
?>
</table>
<div align="center">
<p></p>
<p><a href="name2.php" class="style75"><strong>
<?
}
?>
Tag : - - - -
|
|
|
|
|
|
Date :
21 มี.ค. 2550 20:08:04 |
By :
ดี |
View :
1291 |
Reply :
1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 04
|