[PHP-WIN] Error Question!

2008-05-23 Thread Matthew Gonzales
Hello Everyone, I keep getting this error: *Warning*: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in *C:\wamp\www\login\testroom\upload.php* on line *107, *for this particular area of code. Code: //Check to see what files they have uploaded in the past $p

Re: [PHP-WIN] Error Question!

2008-05-23 Thread James Crow
Matt, You may want to watch out for is sql injection attacks. Just to be on the safe side consider something like: $projects = "select name, type, location, date_added from uploads where user_id = '" . mysql_real_escape_string($_SESSION['user_id'], $conn) . "'"; The reason for the error is $pro

Re: [PHP-WIN] Error Question!

2008-05-23 Thread bitslayer
Matthew, It seems, from looking at your supplied code, that you have a variable-naming typographic error. The variables have to match: $projects_results = mysql_query($projects, $conn) or die(mysql_error()); $project_data = mysql_fetch_array($project_results)) -- Jeff White is: [EMAIL PROTECTE