this is 'pemaju_semakan2.php' coding
<?php include("db.php"); ?>
<?php
$IDSykt=$_POST['IDSykt'];
$query = "SELECT * FROM pemaju WHERE PJ_SYKT_NO='$IDSykt'";
$result=mysql_query($query);
while($row = mysql_fetch_array($result))
{
$IDSykt=$row['PJ_SYKT_NO'];
$NamaSykt=$row['PJ_SYKT_NAMA'];
}
this is 'db.php' coding
<?php
$hostname_connection = "localhost";
$database_connection = "zaza";
$username_connection = "root";
$password_connection = "";
$connection = mysql_pconnect($hostname_connection, $username_connection, $password_connection) or trigger_error(mysql_error(),E_USER_ERROR);
?>
and this is the error
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\pkpkr 09072010\pemaju_semakan2.php on line 9
I have this problen when i running in xamp.. But it was run succ in WAMP5.. is there anything error on my code or there have another setting in xampp?