Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Registration Mysql problems

Explorer ,
Jul 14, 2008 Jul 14, 2008
Hello, i am attempting to learn php, and have been following a tutorial on you tube http://www.youtube.com/watch?v=jrgHTDefB5Y&watch_response,

The code seems to run ok upto when i try to get mysql and php to work together.

when i run the register action i recive message

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 '= FROM 'users' WHERE 'username' ='james1892@ntlworld.com'' at line 1


Help greratly appriciated thanks
TOPICS
Server side applications
323
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 15, 2008 Jul 15, 2008
LATEST
james1892 wrote:

> SELECT = FROM 'user' WHERE 'username' ='$username'

It should be something like

SELECT * FROM 'user' WHERE 'username' ='$username'

where * is for all fields. You may select one field like

Select uername from user where 'username' ='$username'

--

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines