Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6832475
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:51:47+00:00 2026-05-26T22:51:47+00:00

been recoding my site using code igniter. I am having some quirks with my

  • 0

been recoding my site using code igniter. I am having some quirks with my seemingly sensical scripts.

please note that I am aware of not encrypting passwords but am just clear texting until I can get signed in and will implement as step 2

Error Number: 1064

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 ‘@gmail.com && password = Password LIMIT 1’ at line 1

SELECT id FROM users WHERE email = mr-t@gmail.com && password =
Password LIMIT 1

HERE is my code along with an explanation of my problems.

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T22:51:48+00:00Added an answer on May 26, 2026 at 10:51 pm

    You need to have quotes around Password and Email on your select statement.

    The following should work for your case:

    $email = mysql_real_escape_string($this->input->post('email'));
    $password = mysql_real_escape_string($this->input->post('password'));
    $query = $this->db->query('SELECT id FROM users WHERE email = "' . $email . '" && password = "' . $password . '" LIMIT 1');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ive been having some trouble using Plot to graph a complicated composite function. I
I'm having to fix up a megamenu system for a site I've been handed,
i have been trying the code using mutex but im unable to open my
I've been having some problems while trying to fix a simple video recording app*.
I have been using the code in http://opensebj.blogspot.com/2009/04/naudio-tutorial-5-recording-audio.html to record audio. Basically this code:
Been going over my predecessor's code and see usage of the request scope frequently.
Been using PHP/MySQL for a little while now, and I'm wondering if there are
Been having a heated debate with a colleague about his practice of wrapping most
been searching for a quick example of sorting a IQueryable (Using Linq To SQL)
Been reading up on MitB attacks and some things worry me about this. From

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.