Quote:
Originally Posted by ecchi
You are ahead of me already, I didn't know Javascript could interact with SQL!
|
You are correct sir. I am pretty sure Javascript doesn't interact with server side stuff directly.
I'm not sure if I can do it this way. But....
I want to make like a five star display using Javascript, When the page loads, PHP is called to select the table in SQL with the page's current rating. Have the PHP variable passed back to the Javascript updating the display.
When a user clicks a star. PHP would be called to update the rating table in SQL.