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

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