Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PHP error on page submit
#5
(09-17-2011, 05:53 PM)Gaijin Wrote: You've forgot one ")" after now()...
Code:
mysql_query("INSERT INTO user_info (firstname, lastname, username, email, password, sign_up_date)
  VALUES('$firstname','$lastname','$username','$email','$password', now())")

I think that is the error you're looking for.

It's not the second line of the source,it's the second line of the SQL command... (You have an error in your SQL syntax; )

That's where the " was... I keep forgetting the code blocks don't display the whole text, you have to use the scroll bar, so sometimes I select their code, and it's only the visible part at the top of the scrolled code box lol. And that's the reason why I wish this forum added a select all function to the php and code boxes like on my forum.
Reply


Messages In This Thread
PHP error on page submit - by kaosjon - 09-17-2011, 03:51 AM
RE: PHP error on page submit - by Fragma - 09-17-2011, 05:20 AM
RE: PHP error on page submit - by AceInfinity - 09-17-2011, 06:14 AM
RE: PHP error on page submit - by Gaijin - 09-17-2011, 05:53 PM
RE: PHP error on page submit - by AceInfinity - 09-17-2011, 06:54 PM
RE: PHP error on page submit - by Gaijin - 09-17-2011, 07:43 PM
RE: PHP error on page submit - by +Awesome - 09-18-2011, 01:47 AM
RE: PHP error on page submit - by AceInfinity - 09-18-2011, 03:31 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  PHP Framework List: An Ultimate Guide to 102 PHP Frameworks for Web Developers tk-hassan 0 773 07-27-2020, 11:26 PM
Last Post: tk-hassan
  [PHP] Very Basic Login Page BreShiE 17 6,922 07-11-2013, 05:57 AM
Last Post: 1n9i9c7om ツ
  PHP Video Tutorials (PHP For Beginners) Eleqtriq 4 3,264 10-10-2011, 01:00 PM
Last Post: Greyersting
  [TUT] PHP Password Protected Page PurpleHaze 23 5,757 05-20-2011, 02:56 AM
Last Post: stephen5565
  PHP DISABLE HTML ON MEMBERS PAGE Leprechaun Coder 8 2,035 05-14-2011, 09:44 PM
Last Post: Leprechaun Coder

Forum Jump:


Users browsing this thread: 1 Guest(s)