nclude "connect.php"; include "function.php"; $perRow = 4; echo '<table width=800 border=2>'; $sql="select * from tb_addmonth order by id_m asc"; $result=mysql_db_query($dbname,$sql); //echo " //<table width='80%' border='1'> // <tr bgcolor='#D2E9FF'> // <td width='8%'><center><b><font size='2' face='MS Sans Serif'>ID</font></b></center></td> // <td width='61%'> <center><b><font size='2' face='MS Sans Serif'>Web Directory</font></b></center></td> // <td width='15%'> <center><b><font size='2' face='MS Sans Serif'>Edit</font></b></center></td> // <td width='16%'> <center><b><font size='2' face='MS Sans Serif'>Delete</font></b></center></td> //</tr>"; while($record=mysql_fetch_array($result)) { $id_m=$record[id_m]; $name_m=$record[name_m]; $date_m=$record[date_m]; $name_m=htmlspecialchars($name_m); $date_m=displaydate($date_m); $sql2 ="select count(*) as tt from tb_adddate where ref_id= $id_m"; $aaa=mysql_db_query($dbname,$sql2); while($bbb=mysql_fetch_array($aaa)) { $num = $bbb[tt]; } if ( ( $id_m % $perRow ) == 0 ) echo '<tr>'; echo "<td> <font size='2' face='MS Sans Serif'><a href='answer_view.php?id_m=$id_m'>$name_m [$num]</a></font> <font size='2' face='MS Sans Serif'><a href='question_view.php?&id_m=$id_m'>Edit</a></font> <font size='2' face='MS Sans Serif'><a href='question_del.php?&id_m=$id_m&id_d=$id_d'>Delete</a></font> </td>"; if ( ( ( $id_m + 1 ) % $perRow ) == 0 ) echo '</tr>'; } if ( ( $id_m + 1 ) % $perRow != 0 ) { while ( $id_m % $perRow != 0 ) { echo "<td> </td>"; $id_m++; } echo '</tr>'; } echo '</table>'; ?> </p></td> </tr> <tr> <td><p> </p> <p> </p></td> </tr> <h1 align="left" class="style1"> </h1>
<? include "connect.php"; include "function.php"; $perRow = 4; echo '<table width=800 border=2>'; $sql="select * from tb_addmonth order by id_m asc"; $result=mysql_db_query($dbname,$sql); //echo " //<table width='80%' border='1'> // <tr bgcolor='#D2E9FF'> // <td width='8%'><center><b><font size='2' face='MS Sans Serif'>ID</font></b></center></td> // <td width='61%'> <center><b><font size='2' face='MS Sans Serif'>Web Directory</font></b></center></td> // <td width='15%'> <center><b><font size='2' face='MS Sans Serif'>Edit</font></b></center></td> // <td width='16%'> <center><b><font size='2' face='MS Sans Serif'>Delete</font></b></center></td> //</tr>"; while($record=mysql_fetch_array($result)) { $id_m=$record[id_m]; $name_m=$record[name_m]; $date_m=$record[date_m]; $name_m=htmlspecialchars($name_m); $date_m=displaydate($date_m); $sql2 ="select count(*) as tt from tb_adddate where ref_id= $id_m"; $aaa=mysql_db_query($dbname,$sql2); while($bbb=mysql_fetch_array($aaa)) { $num = $bbb[tt]; } if ( ( $id_m % $perRow ) == 0 ) echo '<tr>'; echo "<td> <font size='2' face='MS Sans Serif'><a href='answer_view.php?id_m=$id_m'>$name_m [$num]</a></font> <font size='2' face='MS Sans Serif'><a href='question_view.php?&id_m=$id_m'>Edit</a></font> <font size='2' face='MS Sans Serif'><a href='question_del.php?&id_m=$id_m&id_d=$id_d'>Delete</a></font> </td>"; if ( ( ( $id_m + 1 ) % $perRow ) == 0 ) echo '</tr>'; } if ( ( $id_m + 1 ) % $perRow != 0 ) { while ( $id_m % $perRow != 0 ) { echo "<td> </td>"; $id_m++; } echo '</tr>'; } echo '</table>'; ?>
<?php /*** By Weerachai Nukitram ***/ /*** http://www.ThaiCreate.Com ***/ ?> <html> <head> <title>ThaiCreate.Com Multiple Column</title> </head> <body> <div align="center"> <? $objConnect = mysql_connect("localhost","root","root") or die("Error Connect to Database"); $objDB = mysql_select_db("mydatabase"); $strSQL = "SELECT * FROM gallery ORDER BY GalleryID ASC "; $objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]"); echo"<table border=\"0\" cellspacing=\"1\" cellpadding=\"1\"><tr>"; $intRows = 0; while($objResult = mysql_fetch_array($objQuery)) { $intRows++; echo "<td>"; ?> <table width="91" border="0" cellspacing="0" cellpadding="0"> <tr> <td><div align="center"><a href="gallery/<?=$objResult["Picture"];?>" target="_blank"><img src="gallery/<?=$objResult["Thumbnails"];?>" width="70" height="53" border="0"></a></div></td> </tr> <tr> <td><div align="center"><?=$objResult["GalleryName"];?></div></td> </tr> </table> <? echo"</td>"; if(($intRows)%2==0) { echo"</tr>"; } else { echo "<td>"; } } echo"</tr></table>"; ?> <? mysql_close($objConnect); ?> </div> </body> </html>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง