What I would like to do is as following : I have 3 table's with data from an sql database.(just an simple SQL query).
SQL:
"SELECT * FROM Customers WHERE employee = '" . $name. "'
I also have an form where I can select an option that then goes into the SQL query
while ($row = mysql_fetch_array($sql)) {
echo "<option value = " . ($row['name']) . ">". $row['name'] ." </option>";
}
echo ' </select>';
echo ' <input type="submit" id="submit" name="submit">';
echo '</form>';
With the form I use an simple GET
to get the form output and put it in the SQL query. Now the problem is that I have 3 tables that almost do the same but i would like to have 3 forms where I can give input and then where I give my input that table shows. Is this possible ? And are there any examples.