Jump to content


Photo

MySQL Query


  • Please log in to reply
1 reply to this topic

#1 RDKL PerFecT

RDKL PerFecT
  • Members
  • PipPip
  • Member
  • 12 posts

Posted 25 April 2006 - 07:07 PM

Basically I want to get all fields from a table and add them together. The following code contains an error.
$q2 = mysql_query("select sum(vote) as votesum from portal_votes");

I get the following error: Problem with query: Resource id #4
You have an error in your SQL syntax near 'Resource id #4' at line 1.

If anyone can help me out I would be most greatful.

#2 RDKL PerFecT

RDKL PerFecT
  • Members
  • PipPip
  • Member
  • 12 posts

Posted 25 April 2006 - 07:52 PM

anyone?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users