Quote:<body> <p> <?php require_once('../include/Connect.php'); ?> <?PHP $t_id = @$_GET['t_id']; if(empty($t_id)) die("<script>alert('Please Choose Topic'); history.back();</script>"); $sql = "select * from wb_topic as t inner join wb_group as g on t.g_id=g.g_id where t_id='$t_id'"; $result = mysql_query($sql) or die("Erorr:$sql"); $row = mysql_fetch_array($result); ?> </p> <h4><span class="style1"><strong><a href="index.php">Webboard</a></strong> <strong>></strong></span><?php echo $row['g_name'] ?> <span class="style4">></span> <?PHP echo $row['t_word']?></h4> <table width="500" border="1" align="center" cellpadding="5" cellspacing="0"> <tr> <td colspan="3" scope="col"><span class="style4">Topic # <?PHP echo $row['t_id']?> : <?PHP echo $row['t_word']?></span></td> </tr> <tr> <td colspan="3" scope="col"><p><?PHP echo $row['t_message']?></p> <table width="200" border="0" align="center"> <tr> <td scope="col"><div align="center"><a rel="lightbox" href="upload/<?PHP echo $row['t_pic'] ?>" target="_blank"> <?PHP if(!empty($row['r_pic'])){?> <img src="upload/<?PHP echo $row['t_pic'] ?>" height="200" /> <?PHP }?> </a></div></td> </tr> </table> </td> </tr> <tr> <td width="111"><span class="style2 style5">Poster : <?PHP echo $row['t_poster']?></span></td> <td width="121"><span class="style2 style5"> IP : <?PHP echo $row['t_ip']?></span></td> <td width="230"><span class="style2 style5">Date : <?PHP echo $row['t_datepost']?></span></td> </tr> </table> <p class="style6">Reply</p> <?PHP $sql = "select * from wb_reply where t_id='$t_id'"; $result = mysql_query($sql) or die("Erorr:$sql"); $num = mysql_num_rows($result); for($i=1; $i<=$num; $i++){ $row = mysql_fetch_array($result); ?> <table width="500" border="1" align="center" cellpadding="5" cellspacing="0"> <tr> <td colspan="3" scope="col"><span class="style4">Reply # <?PHP echo $row['r_id']?></span></td> </tr> <tr> <td colspan="3" scope="col"><p><?PHP echo $row['r_message']?></p> <table width="200" border="0" align="center"> <tr> <td scope="col"><div align="center"><a rel="lightbox" href="upload/<?PHP echo $row['r_pic'] ?>" target="_blank"> <?PHP if(!empty($row['r_pic'])){?> <img src="upload/<?PHP echo $row['r_pic'] ?>" height="200" /> <?PHP }?> </a></div></td> </tr> </table></td> </tr> <tr> <td width="111"><span class="style2 style5">Poster : <?PHP echo $row['r_poster']?></span></td> <td width="121"><span class="style2 style5"> IP : <?PHP echo $row['r_ip']?></span></td> <td width="230"><span class="style2 style5">Date : <?PHP echo $row['r_datepost']?></span></td> </tr> </table><br> <?PHP }?> <p align="center" class="style6">Form Reply</p> <form action="save_reply.php" method="post" enctype="multipart/form-data" name="form1" id="form1"> <table width="450" border="1" align="center" cellpadding="5" cellspacing="3" bordercolor="#FF3300" bgcolor="#FFCCCC"> <tr> <th width="135" scope="row">Message</th> <td width="280" bgcolor="#FFFFFF"><label> <textarea name="message" id="message" cols="45" rows="5"></textarea> </label></td> </tr> <tr> <th scope="row">Poster</th> <td bgcolor="#FFFFFF"><label> <input type="text" name="poster" id="poster" /> </label></td> </tr> <tr> <th scope="row">Pic</th> <td bgcolor="#FFFFFF"><label> <input type="file" name="pic" id="pic" /> </label></td> </tr> <tr> <th colspan="2" scope="row"><label> <input type="submit" name="button" id="button" value="Submit" /> <input type="reset" name="button2" id="button2" value="Reset" /> <input name="t_id" type="hidden" id="t_id" value="<?php echo $t_id ?>" /> </label></th> </tr> </table> </form> </body>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง