I'm not sure whether this is the right place to put this, but here goes.

I have a problem with a few lines of code that I am trying to use with my user CP for my website. Basically I have a simple portal system where users can submit their images through a form and it displays in a table on another page via PHP. Well, in their User Cpanel, I wrote a MySQL query to retrieve all the submissions made by the user, then display them. For some reason, the array is appearing blank.

Here is the code:

$yourportal = mysql_query ("SELECT * FROM submissions where artist = $logged[username]");
while ($subs = @mysql_fetch_array($yourportal))
{
echo("$subs[title]
");
}

And here is the MySQL database:


I really need help with this. Thanks.

EDIT: Holy cripes that pic is big. :0