In the chp 12, script: user_personal.php
the following rows doesn't work
PHP Code:
$query = 'SELECT
username, first_name, last_name, city, state, email, hobbies
FROM
site_user u JOIN
site_user_info i ON u.user_id = i.user_id
WHERE
username = "' . mysql_real_escape_string($_SESSION['username'], $db) . '"';
$result = mysql_query($query, $db) or die(mysql_error($db));
$row = mysql_fetch_array($result);
extract($row);
in
this link you can see the problem.
"Warning: extract() [function.extract]: First argument should be an array "
The function mysql_fetch_array doesn't return an array, but if i try to "simplify" the MYSQL code it works! So, what i've to do? I try also the version "assoc" but nothing...