SQL syntax error??

Source: Internet
Author: User
Query failed:sqlstate[42000]: Syntax error or Access violation:1064 you have a error in your SQL Syntax; Check the manual, corresponds to your MySQL server version for the right syntax to use near ' frommembers WHERE id = 0 ' At line 1
 getvalueencoded ("FirstName"). " ". $member->getvalueencoded (" LastName "));? >
 
Username
Getvalueencoded ("username")?>
First Name
getvalueencoded ("FirstName")?>
Last Name
Getvalueencoded ("LastName")?>
Joined on
getvalueencoded ("Joindata")?>
Gender
Getgenderstring ()?>
Favorite Genre
Getfavoritegenrestring ()?>
Email Address
getvalueencoded ("EmailAddress")?>
Other interests
getvalueencoded ("otherinterests")?>

Access Log

Number of Last >
Web Pagevisitsvisit
getvalueencoded ("Pageurl")?> getvalueencoded ("NumVisits")?> getvalueencoded ("lastaccess")?>
Back


Reply to discussion (solution)

' Frommembers


From members xxxxx

Query failed:sqlstate[42000]: Syntax error or Access violation:1064 you have a error in your SQL Syntax; Check the manual, corresponds to your MySQL server version for the right syntax to use near ' frommembers WHERE id = 0 ' at line 1

The basic format of the Select Directive is
SELECT field list from table name

How can the SQL command parser recognize them when you stick the From and members together?

' Frommembers


From members xxxxx
What do you mean?

is to let you write separately, or from this keyword can not be identified.


' Frommembers


From members xxxxx
What do you mean?

What's the problem?

Please determine if there is a member data table.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.