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 hereStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started