Beginner

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kkcam
Forum Newbie
Posts: 2
Joined: Mon Mar 20, 2006 11:01 am

Beginner

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

what? examples or code or something would probably help.
kkcam
Forum Newbie
Posts: 2
Joined: Mon Mar 20, 2006 11:01 am

code

Post 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]
Post Reply