I have a form that appears like a spreadsheet (ie columns/rows) on the page. There are 6 columns. I can edit each row in-line - one at a time.
The fields in the mysql database are things like name, account, account_mgr, region, etc.
Now, it displays all rows all the time by default.
I'm looking for help with two things (I'm very new to PHP, MySql, so bear with me).
The first, is I want to call this form with parameters so it narrows the rows returned. For example, the script is called accounts.php3, and I want to show all accounts where the region is EMEA, so I want to add a parameter to the form and call it like this: accounts.php3?region=EMEA and then it would return only those matching that criteria.
If you can point me to a tutorial for help with this or provide some sample code, that would be great - basically looking for how to modify my php3 file to accomodate the above.
Second question is with regards to searching. I want to add a very simple search form to be called from this accounts.php3 and then return results in the accounts.php3 output format. So, take the user to a screen where they make search selection criteria decisions, then click on a search button and then return to the accounts.php3 script with only those rows matching the search criteria.
Any help is most appreciated.
thanks