The problem is that I included the $use variable in the MySQL query on line 17 (the code quote starts at 14), something I have never seen any other code, nor tried before. So I don't really know if it works at all, or if I just did something wrong that I can't see. If this is all wrong, how else can I do it to get whatever is in the $use variable from tempurl_user?"Parse error: syntax error, unexpected T_VARIABLE in /customers/mangaworld.se/mangaworld.se/httpd.www/zarin/char.php on line 17"
Code: Select all
$q = mysql_query("SELECT item_name, item_pic, item_use FROM tempurl_items WHERE item_owner = '{$you}'");
while($item = mysql_fetch_array($q)) {
$use = $item['use']
$q = mysql_query("SELECT {$use} FROM tempurl_user WHERE user_name = '{$you}'");
while($user = mysql_fetch_array($q)) {
$output .= "<p>$user['use']</p>";
}
}