Hi guys,
I am investigating converting two of our older software programs into web-based applications with a MySQL back-end. I would prefer to do it on PHP than Delphi as it will gives us a neat little Intranet. I've been playing around with PHP a bit and have found it really good.
My main concern is with MySQL query results.
e.g.
Lets say I execute this query:
Select * from customers where cust_code LIKE AB%
Now, with these results, I would display them in a table on the next page. This is where my problem is. Lets say I have 3 rows in the table. They might look something like this:
Customer Code Address
AB11 Address for AB11
AB12 Address for AB12
AB13 Address for AB13
I would like to be able to click on any of these rows above and execute another query, e.g. If I click on line 3, it will get the customer code AB13, then I can execute:
SELECT * FROM INVOICES WHERE CUST_CODE = 'AB13'.
How can I get the customer code for the row I click on? Is this possible?
Any suggestions welcome
Thanks in advance.
------------------------------------
There's no place like 127.0.0.1
------------------------------------
I am investigating converting two of our older software programs into web-based applications with a MySQL back-end. I would prefer to do it on PHP than Delphi as it will gives us a neat little Intranet. I've been playing around with PHP a bit and have found it really good.
My main concern is with MySQL query results.
e.g.
Lets say I execute this query:
Select * from customers where cust_code LIKE AB%
Now, with these results, I would display them in a table on the next page. This is where my problem is. Lets say I have 3 rows in the table. They might look something like this:
Customer Code Address
AB11 Address for AB11
AB12 Address for AB12
AB13 Address for AB13
I would like to be able to click on any of these rows above and execute another query, e.g. If I click on line 3, it will get the customer code AB13, then I can execute:
SELECT * FROM INVOICES WHERE CUST_CODE = 'AB13'.
How can I get the customer code for the row I click on? Is this possible?
Any suggestions welcome
Thanks in advance.
------------------------------------
There's no place like 127.0.0.1
------------------------------------