-----------------------------------------
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\AppServ\www\orig\admin\show_st_total.php on line 5
-----------------------------------------
<?
require_once('../connect/connect.php');
$sql = "select * from state order by state_id";
$result=mysql_db_query($dbname,$sql);
$number=mysql_num_rows($result);
$no=1;
?>
<html>
<head><title>ADMIN</title><meta http-equiv="Content-Type" content="text/html; charset=windows-874"></head>
<body>
<?
if ($number<>0) {
echo "<p><b>รายการ</b></p>
<table border='1'>
<tr bgcolor='#E8E8E8'>
<td><center><b>1</b></center></td>
<td><center><b>1</b></center></td>
</tr>";
while ($rs=mysql_fetch_array($result)) {
$state_id=$rs[state_id];
$ProductName=$rs[ProductName];