<?
require_once 'config.inc.php';
$id = (int)$_GET['uid'];
$result = mysql_query("SELECT * FROM user WHERE uid='$uid' ");
$row = mysql_fetch_array($result);
$resultt = mysql_query("SELECT * FROM user inner join province on province.PROVINCE_ID = user.city and amphur.AMPHUR_ID=user.aumper and district.DISTRICT_ID=user.tumbon");
$rows = mysql_fetch_array($resultt);?>
$strsql = mysql_query("SELECT * FROM user inner join province on
province.PROVINCE_ID = user.city and inner join amphur amphur.AMPHUR_ID=user.aumper and inner join district district.DISTRICT_ID=user.tumbon ");
$rows = mysql_fetch_array($strsql);
พอ join อีก2 ตารางเข้ามาก้ขึ้นแบบนี้อ่าครับ
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in C:\AppServ\www\3\edit.php