Page 1 of 1

Beginner

Posted: Mon Mar 20, 2006 11:06 am
by kkcam
Hi, I am beginning to use PHP, the problem i am having is putting an QUERY inside a button so that it will output the results from a database for me.

I have already outputted the results from a query into a table but I am looking for a button which a user can click on to complete the query.

Is this possible.
Thanks

Posted: Mon Mar 20, 2006 11:13 am
by feyd
what? examples or code or something would probably help.

code

Posted: Mon Mar 20, 2006 11:39 am
by kkcam

Code: Select all

$result = $mysqli->query("SELECT * FROM READING
				WHERE sensor_no='01'");
I am trying to place this piece of code inside a button - i am trying to develop an interface where the user
can go in and by clicking on this button he can see the results of this query.

Is this any clearer - as i say I haven't much experience in PHP.

Thanks[/quote]