kizzie Posted August 30, 2010 Share Posted August 30, 2010 I really need some serious help with the design of a PIN (Personal Identification Number) Management System. When a user (with ID) logs in with the PIN (which already exist in my database), i want the system to assign that PIN to that user (ID) alone. No other user (ID) can access that PIN, the PIN is only assigned to that User (ID). I need the PHP codes, MySQL database tables, and some lil' explanation. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/212068-pin-personal-identification-number-management-system/ Share on other sites More sharing options...
Pikachu2000 Posted August 30, 2010 Share Posted August 30, 2010 If you want someone to sit down and write the code for you, you need to put this in the freelance section, and be prepared to pay someone. Quote Link to comment https://forums.phpfreaks.com/topic/212068-pin-personal-identification-number-management-system/#findComment-1105196 Share on other sites More sharing options...
kizzie Posted August 30, 2010 Author Share Posted August 30, 2010 Not really writing the whole code for me,just the part that assigns the PIN to the User (ID) when the User logs in with the PIN. A lil' help will do. Quote Link to comment https://forums.phpfreaks.com/topic/212068-pin-personal-identification-number-management-system/#findComment-1105199 Share on other sites More sharing options...
trq Posted August 30, 2010 Share Posted August 30, 2010 A simple example. <?php session_start(); if (isset($_POST['pin'])) { $pin = mysql_real_escape_string($_POST['pin']); $sql = "SELECT id FROM users WHERE pin = '$pin'"; if ($result = mysql_query($sql)) { if (mysql_num_rows($result)) { $_SESSION['pin'] = $_POST['pin']; } } } Quote Link to comment https://forums.phpfreaks.com/topic/212068-pin-personal-identification-number-management-system/#findComment-1105200 Share on other sites More sharing options...
kizzie Posted September 1, 2010 Author Share Posted September 1, 2010 Ok Thorpe, would try this and see how far i'd go with it. Thanks again. Quote Link to comment https://forums.phpfreaks.com/topic/212068-pin-personal-identification-number-management-system/#findComment-1106140 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.