Register Register Member Login Member Login Member Login Forgot Password ??
PHP , ASP , ASP.NET, VB.NET, C#, Java , jQuery , Android , iOS , Windows Phone
 

Registered : 109,027

HOME > PHP > PHP Forum > รบกวนพี่ ๆ ช่วยแนะนำวิธิการแบ่งหน้าข้อมูลและ linkไปดูยังหน้าอื่นๆหน่อยครับ



 

รบกวนพี่ ๆ ช่วยแนะนำวิธิการแบ่งหน้าข้อมูลและ linkไปดูยังหน้าอื่นๆหน่อยครับ

 



Topic : 068782

Guest




page

code

Code (PHP)
<table width="1048">
  <tr>
    <th width="768" scope="col"><b>
    หนังสือเข้าทั้งหมด</b></th>
    <th width="268" scope="col"><div align="right"><a href="?detail=search_in"><b>เลือกค้นหาหนังสือเข้า</b></a>
        </div>
    <a href="?detail=search_in"></a><a href="?detail=search_in"></a></div></th>
  </tr>
</table>
<p>&nbsp;</p>
<FORM METHOD="POST" ACTION="adddept1.php">
 
  <table width="98%" border="1" cellspacing="0">
               
                <tr >
                
                  <td width="100" height="42" bgcolor="#FEC3F3"><div align="center">
                    <div align="center"><font size="2"><strong>เลขทะเบียนรับ</strong></font></div>
                  </div></td>
                  <td width="100" height="42" bgcolor="#FEC3F3"><div align="center">
                    <div align="center"><font size="2"><strong>เลขที่หนังสือ</strong></font></div>
                  </div></td>
                  <td width="80" height="42" bgcolor="#FEC3F3"><div align="center"><strong><font size="2">ลงวันที่</font></strong></div>
                    <div align="center"></div></td>
                  <td width="180" height="42" bgcolor="#FEC3F3"><div align="center"><strong><font size="2">จาก/ผู้ส่ง</font></strong></div></td>
                  <td width="181" height="42" bgcolor="#FEC3F3"><div align="center"><strong><font size="2">ถึง/ผู้รับ</font></strong></div></td>
                  <td width=231 height="42" bgcolor="#FEC3F3"><div align="center"><font size="2"><strong>เรื่อง</strong></font></div></td>
                  <td width="34" height="42" bgcolor="#FEC3F3"><div align="center"><font size="2"><strong>แก้ไข</strong></font></div></td>
                  <td width="37" height="42" bgcolor="#FEC3F3"><div align="center"><font size="2"><strong>ลบ</strong></font></div></td>
                </tr>
                <?
//include "chksession.php";
//include "connect.php";
	$count++;
	$sql="select * from regin  ORDER BY `id` ASC ";
	$result=mysql_query($sql);
	while($r=mysql_fetch_array($result)) {
	

        $id=$r[id];
		$regin=$r[regin];
		$reginno=$r[reginno];
		$datein=$r[datein];
		$from=$r[from];
		$to=$r[to];
		$infor=$r[infor];
		$note=$r[note];
	echo "
			<tr height='10'>
	
			<td height='10'><div align='center'>$regin</div></td>
			<td height='10'><div align='center'>$reginno</div></td>
			<td height='10'><div align='center'>$datein</div></td>
			<td height='10'><div align='center'>$from</div></td>
			<td height='10'><div align='center'>$to</div></td>
				<td height='10'><div align='center'>$infor</div></td>
						<td><div align='center'><a href=http:edit_in.php><img border='0'
src='im/แก้ไข.gif' width='35' height='35'></a></div></td>
				<td><div align='center'><a
 href=\"regin_delete.php?id_del=$id\" onclick=\"return confirm('ยืนยันการลบข้อมูลหนังสือเข้าค่ะ  ')\"><img border='0' src='im/ลบ.gif' width='35' height='35'></div></a></td>

			</tr>
		</tr>";
	}
	//mysql_close();
?>
  </table>
</form>




Tag : PHP, MySQL







Move To Hilight (Stock) 
Send To Friend.Bookmark.
Date : 2011-11-07 02:55:26 By : mome View : 711 Reply : 2
 

 

No. 1



โพสกระทู้ ( 347 )
บทความ ( 0 )



สถานะออฟไลน์


โค้ดแบ่งหน้า
https://www.thaicreate.com/php/forum/025968.html






แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2011-11-07 07:14:44 By : ozma
 


 

No. 2



โพสกระทู้ ( 74,058 )
บทความ ( 838 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์
Twitter Facebook



Go to : PHP MySQL List Record Paging/Pagination
แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2011-11-07 08:08:52 By : webmaster
 

   

ค้นหาข้อมูล


   
 

แสดงความคิดเห็น
Re : รบกวนพี่ ๆ ช่วยแนะนำวิธิการแบ่งหน้าข้อมูลและ linkไปดูยังหน้าอื่นๆหน่อยครับ
 
 
รายละเอียด
 
ตัวหนา ตัวเอียง ตัวขีดเส้นใต้ ตัวมีขีดกลาง| ตัวเรืองแสง ตัวมีเงา ตัวอักษรวิ่ง| จัดย่อหน้าอิสระ จัดย่อหน้าชิดซ้าย จัดย่อหน้ากึ่งกลาง จัดย่อหน้าชิดขวา| เส้นขวาง| ขนาดตัวอักษร แบบตัวอักษร
ใส่แฟลช ใส่รูป ใส่ไฮเปอร์ลิ้งค์ ใส่อีเมล์ ใส่ลิ้งค์ FTP| ใส่แถวของตาราง ใส่คอลัมน์ตาราง| ตัวยก ตัวห้อย ตัวพิมพ์ดีด| ใส่โค้ด ใส่การอ้างถึงคำพูด| ใส่ลีสต์
smiley for :lol: smiley for :ken: smiley for :D smiley for :) smiley for ;) smiley for :eek: smiley for :geek: smiley for :roll: smiley for :erm: smiley for :cool: smiley for :blank: smiley for :idea: smiley for :ehh: smiley for :aargh: smiley for :evil:
Insert PHP Code
Insert ASP Code
Insert VB.NET Code Insert C#.NET Code Insert JavaScript Code Insert C#.NET Code
Insert Java Code
Insert Android Code
Insert Objective-C Code
Insert XML Code
Insert SQL Code
Insert Code
เพื่อความเรียบร้อยของข้อความ ควรจัดรูปแบบให้พอดีกับขนาดของหน้าจอ เพื่อง่ายต่อการอ่านและสบายตา และตรวจสอบภาษาไทยให้ถูกต้อง

อัพโหลดแทรกรูปภาพ

Notice

เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ
อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง

   
  เพื่อความปลอดภัยและการตรวจสอบ กระทู้ที่แทรกไฟล์อัพโหลดไฟล์จากที่อื่น อาจจะถูกลบทิ้ง
 
โดย
อีเมล์
บวกค่าให้ถูก
<= ตัวเลขฮินดูอารบิก เช่น 123 (หรือล็อกอินเข้าระบบสมาชิกเพื่อไม่ต้องกรอก)







Exchange: นำเข้าสินค้าจากจีน, Taobao, เฟอร์นิเจอร์, ของพรีเมี่ยม, ร่ม, ปากกา, power bank, แฟลชไดร์ฟ, กระบอกน้ำ

Load balance : Server 00
ThaiCreate.Com Logo
© www.ThaiCreate.Com. 2003-2024 All Rights Reserved.
ไทยครีเอทบริการ จัดทำดูแลแก้ไข Web Application ทุกรูปแบบ (PHP, .Net Application, VB.Net, C#)
[Conditions Privacy Statement] ติดต่อโฆษณา 081-987-6107 อัตราราคา คลิกที่นี่