close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Impossible to execute a query

Thread began 7/08/2011 7:45 am by richard.abitbol263730 | Last modified 7/08/2011 2:58 pm by Jason Byrnes | 1148 views | 7 replies |

richard.abitbol263730

Impossible to execute a query

I have an issue and not sure how to fix. I am entering a custom query into the Custom SQL Query box and it returns and error that states:
Invalid JSON: 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 'SELECT * FROM pm1_users' at line 1. Any ideas?

Sign in to reply to this post

Jason ByrnesWebAssist

what is the query you are entering?

it is impossible to tell why the error is occurring without knowing the query you are running to create the error.

Sign in to reply to this post

richard.abitbol263730

Any query like :SELECT * FROM pm1_users

I tried to use SELECT DISTINCT UserEmail FROM pm1_users

I can't use any query

Sign in to reply to this post

Jason ByrnesWebAssist

the start of the query is already defined as:
SELECT * FROM pm1_users

the input box is for adding a custom where clause:
WHERE UserID = 2

Sign in to reply to this post

richard.abitbol263730

How to use a Distinct option ?

When I add WHERE UserEmail > "c"

I got an error

Sign in to reply to this post

Jason ByrnesWebAssist

use GROUP BY instead of Distinct.


UserEmail > "c" is not a valid syntax

the > operator stands for Greater Than. You cannot perform that sort of math operation on a string, only on a number:

UserID > 5 would be valid

Sign in to reply to this post

richard.abitbol263730

But how can I select only one email ( for exemple when two different users have the same email) by users using GROUP BY

I want to select:

SELECT DISTINCT UserEmail FROM pm1_users

Sign in to reply to this post

Jason ByrnesWebAssist

SELECT * FROM pm1_users GROUP BY UserEmail

does the same thing

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...