PDA

View Full Version : rating click



Green
July 12th, 2006, 04:38 PM
Hi all
I have a small website with 5 navigation buttons.
Everytime when user clicks the button I would like to send a message that button has been clicked xnum of times....to db

I have just installed xampp...and reading through.

my approach
//===============
first I would create 5 tables in mysql with increment setting
//===
but how do I use php to send the click counter from flash?

can anyone help me?

thanks

GrzKax
July 12th, 2006, 04:50 PM
you can send a variable with the url every time somone clicks a button. Something like this:

<a href="somepage.php?button=1">Button</a>

Then all you have to do is add 1 to the number in your db every time a script sees that button = 1.

bwh2
July 12th, 2006, 05:32 PM
1) you do not need 5 different tables. just make a column which identifies which page is being accessed.
2) you just need the onRelease to execute a function that loads the php script which runs the mysql query.