Jump to content

LazyJones

Members
  • Posts

    78
  • Joined

  • Last visited

    Never

Everything posted by LazyJones

  1. Wow, your query is really messed up. SELECT (SELECT COUNT(comment_id) FROM comments WHERE member_id='{$_SESSION['member_id']}') should probably be something like SELECT COUNT(SELECT comment_id FROM comments WHERE member_id='{$_SESSION['member_id']}') And the "base" query doesn't make much sense, for example, there's no FROM statement.
  2. [!--quoteo(post=330466:date=Dec 26 2005, 02:23 PM:name=grrwood)--][div class=\'quotetop\']QUOTE(grrwood @ Dec 26 2005, 02:23 PM) 330466[/snapback][/div][div class=\'quotemain\'][!--quotec--] thanks for the help i really appretiate it added the line if (!$result) { echo("<P>Error performing query: " . mysql_error() . "</P>"); exit(); } Error performing query: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1' at line 1 so im going to keep reading hopefully something come up I'm sure the problem is that variable $u is not set. Try it out by signing some value to it before query
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.