Can someone recommend a good, reliable open source PHP script that allows for a user to login with a username and password/id.
I want to allow a user to enter his/her username and password, where the password pulls specific data from the database, such as all the data with a certain store number - such that a manager could access all the information for each one of their different stores.
<?php
if(isset($_POST['submit'])) {
$jobnumber=$_POST['jobnumber'];
$con = mysql_connect("localhost","root","");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("", $con);
$query = "SELECT * FROM customers WHERE job_number='$jobnumber' OR email='$jobnumber'";
$result = mysql_query($query);
In this script, I have it so a customer can access his or her specific information about their product order. But where I'm stuck is incorporating a separate login/password form where the password pulls all the data that has a particular number. Do I still use the $_POST function if I'm pulling large sections of data?
Thanks for any help, as always.