In this lecture you will begin to create html/css mock-up design for the star-rating script.
We will refine the design and add CSS rules for doing simple animation when users hover their mouse over the stars.
Using PHP will create helper functions for calculating number of stars based on provided rating.
We will output the star-rating HTML code, this time automatically using PHP.
In the lecture you will see how to interact with databases, create rating table and how to fetch data from.
You will learn how to make AJAX requests to request data from PHP files. AJAX is helpful when we want to send data to server and the same time to stay on the same web page, just like when we vote.
This time we will handle events with event-listeners, attaching them to each and every star in order to capture the user vote.
In the lecture you will see the main logic behind registering(saving) votes with the help of php. In order to accomplish this we will program three logical cases: when the user has voted, when not, as well as when the current star-rating element already has registered votes in the database.
We continue with the coding exercise to encompass all the cased in which user can vote. Then we test the script to ensure it is properly working. The working source code is also included as a downloadable resource.
Right now pursuing a computer science PhD in Bulgaria, where usually teach students on interactive web programming.
Independently as well as in teams, am involved in design and development of an user friendly websites.