tags:

views:

69

answers:

3
+1  A: 

Are you sure that is the right code? The error is referring to mysql_fetch_assoc() but there is no mysql_fetch_assoc() in the code you pasted. Where is $addClient defined? Perhaps something inside config.inc.php is wrong?

Paolo Bergantino
+1  A: 

there is no mysql_fetch_assoc on above code, are you sure that was snippet code from get-projects.php?

Dels
+1  A: 

I assume you changed mysql_fetch_assoc to mysql_fetch_array for testing... Anyway, the error should still persist.

You forgot to enclose the string %s in your query between '':

$sth = mysql_query(
    sprintf(
            "SELECT c_id,p_id,p_title FROM projects WHERE c_id = '%s'",
            mysql_real_escape_string($_GET['id'])
    )
);
Seb
That seemed to do the trick..thank you for the help!Appreciate it.Ryan
Coughlin