I'm confused right now.
I've been coding for some while now, to fix a problem, but I'm going blind on how to do, can anyone help me?
First, I have an datatable with all my customers in, then I click "USE" I should go to another page where I can make an case. This is all good, if I only should use one table, but in my project I need more then 1 table, so my question is:
$sql = "SELECT customers.cust_id,
customers.customer_name, numberplate.car
FROM customers , numberplate WHERE SESSION = numberplate.cust_id";
But I can't see how to do it, I know how to make a profilepage and so on, but this ting really tricks my brian right now. Anyone to help?
My session look like this:
if (isset($_GET['cust_id']) && $_GET['cust_id'] != "") {
$id = $_GET['cust_id'];
} else {
$cust_id = $_SESSION['cust_id'];
}