hi,
i'm having problem with this notice:
Notice: Undefined index: db_user_id in .....exec.php on line 77
Notice: Undefined index: db_date_register in .....exec.php on line 78
// Class function
function query($sql)
{
if(!$result = @mysql_query($sql))
{
echo error
}
return $result;
}
//main code
$qry = "SELECT * FROM USER";
$result = $db->query($qry);
while ($row = mysql_fetch_array($result))
{
$user_id = $row['db_user_id']; // the notice refer to this 2 lines
$register_date = $row['db_date_register'];
...
}
pls advise, thanks.