Re: Invoking database php file with hyperlink
| From: | Jeffrey | Date: | Tue, 12 Dec 2006 10:43:34 +0000 |
| Subject: | Re: Invoking database php file with hyperlink | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-42816@lists.php.net to get a copy of this message | ||
Chris Carter wrote:
I need to fetch data from database with the help of a php file, not with the click on a button but click on the hyperlink. I know this is simple but i have not done it. Please advice or give me some link. <?what and how to put here? Get it Main php file is bars.php that fetches data from MySql DBAs another chap has remarked, you don't actually need a button, form or link for a php script to run. Just put whatever queries you want on the page and they will happen whenever the is loaded by a user. If you want to pass variables, via a hyperlink, in order to call specific data from a table, then use the format... <a href="somepage.php?variable_1=x&variable_2=y&variable_3=z">Link</a> Good luck, Jeffrey