Skip to content

vishu3499/ost-project

Repository files navigation

ost-project

I have created a Movie rating form that let users to store a movie and rating in the databse named as movies and in table named as movies. It unables the user to enter ratings to the movie and thereafter it shows and calculate the average rating of movies stored in the database. If you are using phpmyadmin then:- Create three columns in the table movies named as user_name, user_movie, and user_rating. If your using xampp then create a new folder inside htdocs folder in your C drive in xampp folder and name the folder as project. Inside project folder save the above files as two seperate files named as below:- Save the registration html file as registration.php and save the dbmovies php file as dbmovies.php If you want to make a single file then create a folder inside htdocs folder and name it as project and inside this folder make a new file as completecode.php or name it as you want then copy code present in the completecode.php file and paste in your file and then run the code. If you are using ubuntu then:- Open the terminal and run mysql, create the database movies using mysql command and then create a table movies with three columns user_name, user_movie, and user_rating. Then copy the completecode.php file and paste the same code in your desired file (i have named it as project.php) and run the programme by clicking in the browser and typing url as http://localhost/project.php. Remember to make the file in var/www/html. (sudo gedit /var/www/html/project.php) For your convinience, I have also attached screenshots of the pages that will be shown after the succesfull running of the above codes. HAPPY CODING!!!!