Question: Create a file titled writeFilms.php . This file should query your database to find all the movies for each category. You need to write to
Create a file titled writeFilms.php This file should query your database to find all the movies for each category. You need to write to a text file a record for each category. The record should contain the film category, the number of films in the category, and a list of the films. You should also write this information to an HTML table with columns. Column is category, Column is a count of movies in the category, column is a comma delimited list of the movies in the category. Use the format shown below for your text file. Both the html table and the text file should be sorted by category.
Category:number of films:filmTitlefilmTitle;
For example fake data for example purposes:
Comedy::Berets Agent,Boiled Dares;
You may use any combination of SQL PHP you wish. You can write a fancy SQL statement to do some processing for you, or you can simply use SQL to grab the info from the database, then use PHP to process the info. Film category can be used as a key in an associative array.
Task
For this task you will create a reverse SHA lookup website. A user will be able to provide a SHA hash value, and you should present the string that created the SHA value. You are given input files, shalist.txt shalist.txt and shalist.txt Each file has the given word followed by its hash value, separated by a colon. Each file uses the algorithm specified in the file name.
A user should be able to access an html file called html and enter a sha hash value that will be submitted to a file called sha.php
The sha.php file should load the information from the text files into a data structure of your choice. note that the hash values are unique among all files, so you can use the hash value as a key in an associative array Next, the php script should search for the string that generated the given hash value.
Your php script should generate a dynamic html file that displays the hash value that was searched for, along with either the string that generated the hash value, or a message indicating that the value could not be found in the servers records.
You should include a button and an input form that allows the user to search for another string and triggers the same php script again. You simply set the action field of the form to point back at the sha.php file. Make sure your post array variable is set correctly again as well
Task
Design and create a survey database entityrelationship diagram. Your model should also be able to track each students survey response. A survey question can be one of two types: multiple choice, textbased. The question should be stored in some tables. Create appropriate relationships. Include appropriate attributes. Make sure to indicate primary keys for each Entity Set. Include multiplicities. You should have between and inclusive entity sets.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
