|
|
|
php ฟ้องerror ครับ ช่วยที Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result |
|
|
|
|
|
|
|
<?php
include ("includes/configdb.php");
mysql_db_query($db,"SET NAMES tis620");
$sql = "select * from tb_cate where id_cate = '1' ";
$result = mysql_db_query($db, $sql);
$rec=mysql_fetch_array($result); /////บรรทัดที่ 29
$id_cate = $rec [id_cate];
$name_cate = $rec [name_cate];
?>
นี่คือไฟล์ configdb.php ครับ
<?php
$host="localhost";
$user="root";
$pwd="";
$db="testbase";
$cn=mysql_connect($host,$user);
mysql_select_db($db,$cn);
?>
|
|
|
|
|
Date :
30 ต.ค. 2551 10:41:54 |
By :
sss |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 01
|