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 : 016881

Guest




อยากถามว่าเมื่อเราเข้ามาในหน้าแรกจะมี รูป และข้อความอย่างย่อหลายๆหัวข้อ และเมื่อเราคลิกที่รูปนั้นมันก็จะแสดงรายละเอียดต่างๆแต่ปัญหา คือ รูปและข้อความที่แสดงนั้นไม่ตรงกับหน้าแรก

หน้า show.php

<?
include("../../config.inc.php");
include("../../function.inc.php");

@mysql_query($sql_update);
$sql="SELECT * FROM product WHERE pType='4' ORDER BY pId DESC LIMIT 0,1";
$query = mysql_query($sql);
?>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<LINK rel="stylesheet" href="file:///C|/AppServ/www/Landandzone/style.css">
<title>คอนโดมิเนี่ยม</title>

<table width="820" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="10" background="file:///C|/AppServ/www/Landandzone/Pic/line3.jpg"><div align="center"> </div></td>
<td>
<? include "../inc/Header.php" ?>
</td>
<td width="10" background="file:///C|/AppServ/www/Landandzone/Pic/line.jpg">&nbsp;</td>
</tr>
</table>
<TABLE WIDTH=820 BORDER=0 align="center" CELLPADDING=0 CELLSPACING=0 bgcolor="#FFFFFF">
<TR>
<TD width="10" height="452" valign="top" background="file:///C|/AppServ/www/Landandzone/Pic/line3.jpg" bgcolor="#FFFFFF"> <br> </TD>
<TD width="186" valign="top" bgcolor="#FFFFFF"> <div align="center">
<table width="200" height="374" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="137">
<? include "../inc/leftmenu.php" ?>
</td>
</tr>
</table>
<p>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="130" height="140">

<param name="quality" value="high"><param name="SRC" value="file:///C|/AppServ/www/Landandzone/swfs/relog.swf">
<embed src="file:///C|/AppServ/www/Landandzone/swfs/relog.swf" width="130" height="140" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></object>
</p>
<p>&nbsp;</p>
</div></TD>
<TD width="580" valign="top" bgcolor="#FFFFFF"><table width="580" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="59"><div align="center"><img src="file:///C|/AppServ/www/Landandzone/Pic/16.jpg" width="580" height="46"></div></td>
</tr>
</table>
<?
while ($row=mysql_fetch_array($query)) {
$pId=$row['pId'];
$pPic=$row['pPic'];
?>
<table width="550" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="#EEEEEE"><strong><font color="#000000" size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif">&nbsp;<? echo $row['pTopic']; ?></font></strong></td>
</tr>
</table>
<table width="550" align="center" cellpadding="0" cellspacing="0">

<tr>
<td height="338" colspan="2" valign="top"> <div align="center"></div>
<div align="center">
<table width="400" height="300" border="0" align="center" cellpadding="3" cellspacing="0">
<tr>
<td><div align="center"><font color="#000000" size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif">
<? if($pPic!=""){echo"<img src=\"file/$pPic\"><br>"; }?>
</font></div></td>
</tr>
</table>
</div>
<div align="center"></div></td>
</tr>
<tr bgcolor="#CCFFCF">
<td width="76" height="30"><font color="#333333"><strong><font size="2" face="MS Sans Serif, Tahoma, sans-serif"><br>
ประเภท :<br>
</font> </strong> </font> <table width="99%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2" bgcolor="#EEEEEE"><font color="#333333"><strong><font size="2" face="MS Sans Serif, Tahoma, sans-serif"><img src="file:///C|/AppServ/www/Landandzone/product/icon/d" width="1" height="1"></font></strong></font></td>
</tr>
</table></td>
<td width="472" height="30"><font size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif"><? echo $row['pName']; ?></font></td>
</tr>
<tr>
<td height="30"><strong><font color="#333333" size="2" face="MS Sans Serif, Tahoma, sans-serif">จำนวน
:</font></strong></td>
<td height="30"><font size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif"><? echo $row['pSize']; ?></font></td>
</tr>
<tr bgcolor="#CCFFCC">
<td height="30"><strong><font color="#333333" size="2" face="MS Sans Serif, Tahoma, sans-serif">ทำเลที่ตั้ง
:</font></strong></td>
<td height="30"><font size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif"><? echo $row['pAddress']; ?></font></td>
</tr>
<tr>
<td height="30"><strong><font color="#333333" size="2" face="MS Sans Serif, Tahoma, sans-serif">รายละเอียด
:</font></strong></td>
<td height="30"><font size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif"><? echo $row['pDetail']; ?></font></td>
</tr>
<tr bgcolor="#CCFFCC">
<td height="30"><strong><font color="#333333" size="2" face="MS Sans Serif, Tahoma, sans-serif">ราคา
:</font></strong></td>
<td height="30"><font size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif"><? echo $row['pPrice']; ?></font></td>
</tr>
<tr>
<td height="30"><strong><font color="#333333" size="2" face="MS Sans Serif, Tahoma, sans-serif">สนใจติดต่อ
:</font></strong></td>
<td height="30"><font size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif"><? echo $row['pTel']; ?></font></td>
</tr>
<? } ?>
</table>
<p align="center">&nbsp; </p>
<p align="center">&nbsp;</p>
<p align="center">&nbsp;</p>
<table width="530" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><div align="right"><a href="list.php"><img src="file:///C|/AppServ/www/Landandzone/Pic/Back.gif" width="66" height="53" border="0"></a></div></td>
</tr>
</table>
<p align="center">&nbsp; </p>
</TD>
<TD width="10" valign="top" background="file:///C|/AppServ/www/Landandzone/Pic/line.jpg" bgcolor="#FFFFFF">&nbsp;</TD>
</TR>
</TABLE>
<table width="820" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="10" background="file:///C|/AppServ/www/Landandzone/Pic/line3.jpg"><div align="center"> </div></td>
<td>
<? include( "../inc/footer.php");?>
</td>
<td width="10" background="file:///C|/AppServ/www/Landandzone/Pic/line.jpg">&nbsp;</td>
</tr>
</table>

ขอขอบคุณที่ช่วยตอบคำถามด้วยคะ


Tag : - - - -







Move To Hilight (Stock) 
Send To Friend.Bookmark.
Date : 29 พ.ย. 2550 19:14:25 By : ฝน View : 1286 Reply : 1
 

 

No. 1

Guest


<?
include("../../config.inc.php");
include("../../function.inc.php");

@mysql_query($sql_update);
$sql="SELECT * FROM product WHERE pType='4' ORDER BY pId DESC LIMIT 0,1";
$query = mysql_query($sql);
?>
<meta http-equiv="Content-Type" content="text/html; charset=TIS-620">
<LINK rel="stylesheet" href="Landandzone/style.css">
<title>คอนโดมิเนี่ยม</title>

<table width="820" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="10" background="Landandzone/Pic/line3.jpg"><div align="center"> </div></td>
<td>
<? include "../inc/Header.php" ?>
</td>
<td width="10" background="Landandzone/Pic/line.jpg">&nbsp;</td>
</tr>
</table>
<TABLE WIDTH=820 BORDER=0 align="center" CELLPADDING=0 CELLSPACING=0 bgcolor="#FFFFFF">
<TR>
<TD width="10" height="452" valign="top" background="Landandzone/Pic/line3.jpg" bgcolor="#FFFFFF"> <br> </TD>
<TD width="186" valign="top" bgcolor="#FFFFFF"> <div align="center">
<table width="200" height="374" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="137">
<? include "../inc/leftmenu.php" ?>
</td>
</tr>
</table>
<p>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="130" height="140">

<param name="quality" value="high"><param name="SRC" value="Landandzone/swfs/relog.swf">
<embed src="Landandzone/swfs/relog.swf" width="130" height="140" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></object>
</p>
<p>&nbsp;</p>
</div></TD>
<TD width="580" valign="top" bgcolor="#FFFFFF"><table width="580" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="59"><div align="center"><img src="Landandzone/Pic/16.jpg" width="580" height="46"></div></td>
</tr>
</table>
<?
while ($row=mysql_fetch_array($query)) {
$pId=$row['pId'];
$pPic=$row['pPic'];
?>
<table width="550" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="#EEEEEE"><strong><font color="#000000" size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif">&nbsp;<? echo $row['pTopic']; ?></font></strong></td>
</tr>
</table>
<table width="550" align="center" cellpadding="0" cellspacing="0">

<tr>
<td height="338" colspan="2" valign="top"> <div align="center"></div>
<div align="center">
<table width="400" height="300" border="0" align="center" cellpadding="3" cellspacing="0">
<tr>
<td><div align="center"><font color="#000000" size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif">
<? if($pPic!=""){echo"<img src=\"file/$pPic\"><br>"; }?>
</font></div></td>
</tr>
</table>
</div>
<div align="center"></div></td>
</tr>
<tr bgcolor="#CCFFCF">
<td width="76" height="30"><font color="#333333"><strong><font size="2" face="MS Sans Serif, Tahoma, sans-serif"><br>
ประเภท :<br>
</font> </strong> </font> <table width="99%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2" bgcolor="#EEEEEE"><font color="#333333"><strong><font size="2" face="MS Sans Serif, Tahoma, sans-serif"><img src="Landandzone/product/icon/d" width="1" height="1"></font></strong></font></td>
</tr>
</table></td>
<td width="472" height="30"><font size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif"><? echo $row['pName']; ?></font></td>
</tr>
<tr>
<td height="30"><strong><font color="#333333" size="2" face="MS Sans Serif, Tahoma, sans-serif">จำนวน
:</font></strong></td>
<td height="30"><font size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif"><? echo $row['pSize']; ?></font></td>
</tr>
<tr bgcolor="#CCFFCC">
<td height="30"><strong><font color="#333333" size="2" face="MS Sans Serif, Tahoma, sans-serif">ทำเลที่ตั้ง
:</font></strong></td>
<td height="30"><font size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif"><? echo $row['pAddress']; ?></font></td>
</tr>
<tr>
<td height="30"><strong><font color="#333333" size="2" face="MS Sans Serif, Tahoma, sans-serif">รายละเอียด
:</font></strong></td>
<td height="30"><font size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif"><? echo $row['pDetail']; ?></font></td>
</tr>
<tr bgcolor="#CCFFCC">
<td height="30"><strong><font color="#333333" size="2" face="MS Sans Serif, Tahoma, sans-serif">ราคา
:</font></strong></td>
<td height="30"><font size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif"><? echo $row['pPrice']; ?></font></td>
</tr>
<tr>
<td height="30"><strong><font color="#333333" size="2" face="MS Sans Serif, Tahoma, sans-serif">สนใจติดต่อ
:</font></strong></td>
<td height="30"><font size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif"><? echo $row['pTel']; ?></font></td>
</tr>
<? } ?>
</table>
<p align="center">&nbsp; </p>
<p align="center">&nbsp;</p>
<p align="center">&nbsp;</p>
<table width="530" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><div align="right"><a href="list.php"><img src="Landandzone/Pic/Back.gif" width="66" height="53" border="0"></a></div></td>
</tr>
</table>
<p align="center">&nbsp; </p>
</TD>
<TD width="10" valign="top" background="Landandzone/Pic/line.jpg" bgcolor="#FFFFFF">&nbsp;</TD>
</TR>
</TABLE>
<table width="820" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="10" background="Landandzone/Pic/line3.jpg"><div align="center"> </div></td>
<td>
<? include( "../inc/footer.php");?>
</td>
<td width="10" background="Landandzone/Pic/line.jpg">&nbsp;</td>
</tr>
</table>


path ของไฟล์ ดูดีๆ ค่ะ
การอ้าง path ถูกป่าวคะ ถ้าจะให้ดุ ส่งมาให้ดิฉันดูให้ก็ได้นะ ไม่คิดตัง







Date : 30 พ.ย. 2550 21:48:37 By : wanatshar
 

   

ค้นหาข้อมูล


   
 

แสดงความคิดเห็น
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 อัตราราคา คลิกที่นี่