ทำไงให้เวปที่ up ขึ้นเซิฟเวอร์เเล้วเเสดงผลเหมือนใน localhost ครับ
พอผมอัพข้อมูลไปใหม่มันเเสดงรูปเป็นของที่เพิ่งอัพใหม่หมดเลยครับ ข้อมูลรูปเก่าก็เป็นของใหม่หมดเลย เเต่ข้อมูลที่เป็นตัวอักษรไม่เปลี่ยนครับ
นี้ code ครับ
<style>
<!--
a:link { text-decoration: none; color: red}
a:visited {text-decoration: none; color:red}
a:hover { text-decoration: underline; color: #FF3333}
.style19 {font-size: 14px}
--></style>
<?$id_title=$_GET[id_title];
include "connect.php";
$sql="select * from tb_title where id_title='$id_title' ";
$result=mysql_db_query($dbname,$sql);
$r=mysql_fetch_array($result);
$name_title=$r[name_title];
?>
<table width="800" border="0">
<tr>
<td valign="top">
<TABLE width="174"border="0"BGCOLOR="#AAAAAA">
<TR >
<TD width="70"valign="top" BGCOLOR="#AAAAAA"align="left"><font FACE='Arial,Helvetica,sans-serif' size='2' ><B>Brand >></B></font></TD>
<TD width="104"BGCOLOR="#AAAAAA"><?$sql2="select * from tb_brand where id_brand='$id_brand'order by id_brand desc";
$result2=mysql_db_query($dbname,$sql2);
$num=mysql_num_rows($result2);
if($num>0) {
while ($r2=mysql_fetch_array($result2)) {
$id_brand=$r2[id_brand];
$name_brand=$r2[name_brand];
$no++;
echo "<font FACE='Arial,Helvetica,sans-serif' size='2' color='white'><b>$name_brand</b></font>";
}
}
?></TD>
</TR>
</table>
<table border="0"BGCOLOR="#CCCCCC">
<TR BGCOLOR="#CCCCCC">
<TD width="70"><div align="left"><font FACE='Arial,Helvetica,sans-serif' size='2'><B>Category> </B></font></div></TD>
<TD width="104"><font FACE='Arial,Helvetica,sans-serif' size='2'color='white'><b><?=$name_title?></b></font></TD>
</TR>
</TABLE>
<? echo"<table border='0' width='174'BGCOLOR='#DDDDDD'>
<TR >
<TD align='center'><font FACE='Arial,Helvetica,sans-serif' size='2'><B><a href='showall.php?id_brand=$id_brand'>Back</B></font></TD>
</TR>
</TABLE>";
?>
</td>
<td><?
$no=0;
$sql3="select * from tb_photo where ref_title='$id_title' order by id_photo";
$result3=mysql_db_query($dbname,$sql3);
$num=mysql_num_rows($result3);
if($num>0) {
while ($r3=mysql_fetch_array($result3)) {
$id_photo=$r3[id_photo];
$name_photo=$r3[name_photo];
$name_photo2=$r3[name_photo2];
$name_photo3=$r3[name_photo3];
$detail_photo=$r3[detail_photo];
$name_pro=$r3[name_pro];
$detail_photo=nl2br(htmlspecialchars($detail_photo));
$no++;
if($name_photo==""){
$name_photo="temp.jpg";
}
if($name_photo2==""){
$name_photo2="noviewexample.jpg";
}
if($name_photo3==""){
$name_photo3="noviewdownload.jpg";
}
echo "<table width='295' height='105' border='0'>
<tr>
<td width='75' rowspan='3' align='center' valign='top'><A HREF='myfile/$name_photo' TARGET='_blank'>
<IMG SRC='myfile/$name_photo' width='75' height='75' BORDER=0></A></td>
<td colspan='2'valign='top' height='23' BGCOLOR=#999999><b>Product Name: </b><font FACE='Arial,Helvetica,sans-serif' size='2' color='white'><b>$name_pro</font></td>
</tr>
<tr>
<td height='32' colspan='2'valign='top' ><font FACE='Arial,Helvetica,sans-serif' size='2'><b>Product Description:</b><br>$detail_photo</font></td>
</tr>
<tr>
<td width='324'valign='top'height='17'><font FACE='Arial,Helvetica,sans-serif' size='2'><A HREF='myfile/$name_photo2'>*** View Example</A></font></td>
<td width='221'valign='top'height='17'><font FACE='Arial,Helvetica,sans-serif' size='2'color='red'><A target='_blank' HREF='myfile/$name_photo3'>*** Download</A></font></td>
</tr>
<tr>
<td valign='top' height='23' colspan='3'>.............................................................................................................................................................</td>
</tr>
</table>";
}
}
?></td>
</tr>
</table>Tag : - - - -
Date :
2010-03-16 18:15:12
By :
olme
View :
906
Reply :
1
ลอง Refresh หลาย ๆ ครั้งครับ
Date :
2010-03-16 22:12:10
By :
webmaster
Load balance : Server 00