|
|
|
ช่วยดูให้หน่อยคับ มัน error ตรง fecth_arrary 161 อะคับ |
|
|
|
|
|
|
|
Code (PHP)
<?
session_start();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Home</title>
<meta name="keywords" content="pink shop, store template, ecommerce, online shopping, CSS, HTML" />
<meta name="description" content="Pink Shop is a free ecommerce template provided by templatemo.com" />
<link href="templatemo_style.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="stylesheet/styles.css" />
<script language="javascript" type="text/javascript">
function clearText(field)
{
if (field.defaultValue == field.value) field.value = '';
else if (field.value == '') field.value = field.defaultValue;
}
</script>
<script language="javascript" type="text/javascript" src="scripts/mootools-1.2.1-core.js"></script>
<script language="javascript" type="text/javascript" src="scripts/mootools-1.2-more.js"></script>
<script language="javascript" type="text/javascript" src="scripts/slideitmoo-1.1.js"></script>
<script language="javascript" type="text/javascript">
window.addEvents({
'domready': function(){
/* thumbnails example , div containers */
new SlideItMoo({
overallContainer: 'SlideItMoo_outer',
elementScrolled: 'SlideItMoo_inner',
thumbsContainer: 'SlideItMoo_items',
itemsVisible: 5,
elemsSlide: 3,
duration: 200,
itemsSelector: '.SlideItMoo_element',
itemWidth: 140,
showControls:1});
},
});
</script>
</head>
<body>
<div id="templatemo_wrapper">
<div id="templatemo_menu">
<ul>
<li><a href="#" class="current"><span>.01</span>Home</a></li>
<li><a href="http://www.templatemo.com/page/1" target="_parent"><span>.02</span></a></li>
<li><a href="http://www.flashmo.com/page/1" target="_parent"><span>.03</span></a></li>
<li><a href="http://www.koflash.com" target="_parent"><span>.04</span></a></li>
<li><a href="Webboard"><span>.05</span>Webboard</a></li>
<li><a href="#"><span>.06</span>Contact</a></li>
</ul>
</div>
<!-- end of templatemo_menu -->
<div id="templatemo_header_bar">
<div id="header">
<div class="right"></div>
<h1><a href="#"> <img src="images/templatemo_logo.png" alt="Site Title" /> <span>Online Store Template</span> </a></h1>
</div>
<div id="search_box">
<form action="#" method="get">
<input type="text" value="Enter keyword here..." name="q" size="10" id="searchfield" title="searchfield" onfocus="clearText(this)" onblur="clearText(this)" />
<input type="submit" name="Search" value="" alt="Search" id="searchbutton" title="Search" />
</form>
</div>
</div>
<!-- end of templatemo_header_bar -->
<div class="cleaner"></div>
<div id="sidebar">
<div class="sidebar_top"></div>
<div class="sidebar_bottom"></div>
<div class="sidebar_section">
<h2>Members</h2>
<form action="check_logout.php" method="post">
<label></label>
<label>
<?= $_SESSION["s_name"] ?>
<?= $_SESSION["s_last_n"] ?>
<br />
<embed src=http://i245.photobucket.com/albums/gg78/looma001/teartime2.swf width="150" height="120" quality="high" wmode="transparent"></embed>
<br>
<input type="submit" name="button" id="button" value="LOG OUT" onClick="alert('LOG OUT SUCCESSFUL')"/>
<br />
</label>
</form>
</div>
<div class="sidebar_section">
<h2>Categories</h2>
<ul class="categories_list">
<li><a href="#">Books & Reference</a></li>
<li><a href="#">Business</a></li>
<li><a href="#">Comics</a></li>
<li><a href="#">Communication</a></li>
<li><a href="#">Education</a></li>
<li><a href="#">Entertainment</a></li>
<li><a href="#">Finance</a></li>
<li><a href="#">Health & Fitness</a></li>
<li><a href="#">Libraries & Demo</a></li>
<li><a href="#">Lifestyle</a></li>
<li><a href="#">Live Wallpaper</a></li>
<li><a href="#">Media & Video</a></li>
<li><a href="#">Medical</a></li>
<li><a href="#">Music & Audio</a></li>
<li><a href="#">News & Magazines</a></li>
<li><a href="#">Personalization</a></li>
<li><a href="#">Photography</a></li>
<li><a href="#">Productivity</a></li>
<li><a href="#">Shopping</a></li>
<li><a href="#">Social</a></li>
<li><a href="#">Sports</a></li>
<li><a href="#">Tools</a></li>
<li><a href="#">Transportation</a></li>
<li><a href="#">Travel & Local</a></li>
<li><a href="#">Weather</a></li>
<li><a href="#">Widgets</a></li>
</ul>
</div>
<div class="sidebar_section">
<h2> </h2>
<div class="image_wrapper"></div>
<div class="discount"><span>?</span></div>
</div>
</div>
<!-- end of sidebar -->
<div id="templatmeo_content">
<div id="latest_product_gallery">
<h2>Featured Products</h2>
<div id="SlideItMoo_outer">
<div id="SlideItMoo_inner">
<div id="SlideItMoo_items">
<table width="651" height="153" border="2">
<tr>
<td height="129"> </td>
</tr>
</table>
</div>
<br />
</div>
</div>
</div>
<!-- end of latest_content_gallery -->
<div class="content_section">
<div class="product_box margin_r35"><br />
<table width="652" border="1">
<tr>
<td colspan="4"> </td>
<td colspan="2" align="right">เริ่มหัวข้อใหม่</td>
</tr>
<tr>
<td width="60" align="center">รหัสหัวข้อ</td>
<td width="318" align="center">เรื่อง</td>
<td width="84" align="center">ตอบโดย</td>
<td width="72" align="center">ลาสุด</td>
<td width="39" align="center">ตอบ</td>
<td width="39" align="center">อ่าน</td>
</tr>
<?
$sql = "select * From webboard order by W_no DESC";
$result = mysql_query($sql);
while($data=mysql_fetch_array($result)){
$sql2 = "select * from webboard where W_no=$data[W_no]";
$result2 = mysql_query($sql2);
$num_row = mysql_num_rows($result2);
?>
<tr>
<td align="center"><?=$data[W_no];?></td>
<td align="center"><a href="show_detail.php?W_no=<?=$data[W_no];?>"><?=$data[W_topic]?></a></td>
<td align="center"><?=$data[W_by];?></td>
<td align="center"><?=$data[W_date];?></td>
<td align="center"><?=$data[W_post];?></td>
<td align="center"><?=$data[W_view];?></td>
</tr>
<? } ?>
</table>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<p class="price"> </p>
</div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
</div>
</div>
<p>
<!-- end of templatmeo_content -->
</p>
<p> </p>
</div>
<!-- end of templatemo_wrapper -->
<div id="templatemo_footer_wrapper">
<div id="templatemo_footer">
<ul class="footer_menu">
<li><a href="#">Home</a></li>
<li><a href="http://www.templatemo.com/page/1" target="_parent">CSS Templates</a></li>
<li><a href="http://www.flashmo.com/page/1" target="_parent">Flash Resources</a></li>
<li><a href="#">Gallery</a></li>
<li><a href="#">Company</a></li>
<li class="last_menu"><a href="#">Contact</a></li>
</ul>
Copyright © 2048 <a href="#">Your Company Name</a> |
Designed by <a href="http://www.templatemo.com" target="_parent">Free CSS Templates</a> |
Validate <a href="http://validator.w3.org/check?uri=referer">XHTML</a> & <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a> </div>
<!-- end of footer -->
</div>
<!-- end of footer_wrapper -->
</body>
</html>
Tag : PHP, WebService
|
|
|
|
|
|
Date :
2012-03-30 14:14:34 |
By :
big |
View :
794 |
Reply :
6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\AppServ\www\Android\webboard.php on line 161
|
|
|
|
|
Date :
2012-03-30 14:16:32 |
By :
big |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
มัน fetch ค่าไม่ได้ เพราะ $result มีปัญหาครับ
ลองใช้
Code (PHP)
$result = mysql_query($sql) or die(mysql_error()."[".$sql."]");
เพื่อดู error
|
|
|
|
|
Date :
2012-03-30 14:42:23 |
By :
50121680 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Connect db อยู่ใหนอ่า ไม่เห็น
|
|
|
|
|
Date :
2012-03-30 14:42:25 |
By :
pumin99 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
^^ ผมนี้ สับเผ่าจิงๆ
|
|
|
|
|
Date :
2012-03-30 14:49:54 |
By :
ิbiggest59 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ได้ยังอ่าา
|
|
|
|
|
Date :
2012-03-30 14:52:08 |
By :
pumin99 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ได้เเว้วคร้าฟ ขอบคุณมากคับป่ม
ลืม Include จาก DB ! T_T
|
|
|
|
|
Date :
2012-03-30 14:55:01 |
By :
ิbiggest59 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 05
|