Question: Write a PHP page that obtains a URL and its description from a user and stores the information into a database using MySQL. The first
Write a PHP page that obtains a URL and its description from a user and stores the information into a database using MySQL. The first field on the webpage should contain an actual URL that the user inputs. The second field contains the description of the URL that the user enters. After each new URL/Description is submitted, a webpage will also print the contents of the database in a table. The example is here:

This is the code in URLs.sql file:
DROP DATABASE IF EXISTS URLs;
CREATE DATABASE URLs;
USE URLs;
CREATE TABLE urltable
(
ID int NOT NULL AUTO_INCREMENT PRIMARY KEY,
URL varchar(128),
description varchar(255)
);
2.(30\%) Create the database and import the table. download here: Write a PHP page that obtains a URL and its description from a user and stores the information into a database using MySQL The first field on the webpage should contain an actual URL that the user inputs. The second field contains the description of the URL that the user enters. After each new URL/Description is submitted, a webpage will also print the contents of the database in a table. The example is here
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
