I have two sql tables for user login, store and retrieve data according to the user ID.
$result = mysql_query("SELECT *FROM users u JOIN requests r ON (r.uid = u.id) WHERE r.request_id = ?");
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
NO NO NO, DON’t DO THAT!!! You’ll be hacked so easy!
use PDO or prepare statement
(you miss the space between the * and FROM)
It looks that you are not using OOP, I highly recommend you to take a fast tutorial to learn the basic about OOP, or if you have time and want to learn I will tell you to use some king of framework as Codeigni.ter or CakePHP to learn a lot about class and functions