เรื่องการ link รูป อยากถามว่าเมื่อเราเข้ามาในหน้าแรกจะมี รูป และข้อความอย่างย่อหลายๆหัวข้อ และเมื่อเราคลิกที่รูปนั้นมันก็จะแสดงรายละเอียดต่างๆแต่ปัญหา
อยากถามว่าเมื่อเราเข้ามาในหน้าแรกจะมี รูป และข้อความอย่างย่อหลายๆหัวข้อ และเมื่อเราคลิกที่รูปนั้นมันก็จะแสดงรายละเอียดต่างๆแต่ปัญหา คือ รูปและข้อความที่แสดงนั้นไม่ตรงกับหน้าแรก
หน้า 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"> </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> </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"> <? 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"> </p>
<p align="center"> </p>
<p align="center"> </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"> </p>
</TD>
<TD width="10" valign="top" background="file:///C|/AppServ/www/Landandzone/Pic/line.jpg" bgcolor="#FFFFFF"> </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"> </td>
</tr>
</table>
ขอขอบคุณที่ช่วยตอบคำถามด้วยคะTag : - - - -
Date :
29 พ.ย. 2550 19:14:25
By :
ฝน
View :
1321
Reply :
1
<?
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"> </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> </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"> <? 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"> </p>
<p align="center"> </p>
<p align="center"> </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"> </p>
</TD>
<TD width="10" valign="top" background="Landandzone/Pic/line.jpg" bgcolor="#FFFFFF"> </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"> </td>
</tr>
</table>
path ของไฟล์ ดูดีๆ ค่ะ
การอ้าง path ถูกป่าวคะ ถ้าจะให้ดุ ส่งมาให้ดิฉันดูให้ก็ได้นะ ไม่คิดตัง
Date :
30 พ.ย. 2550 21:48:37
By :
wanatshar
Load balance : Server 02