Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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:

image text in transcribed

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)

);

No Chegg answer has helped thus-far. Please DO NOT copy and paste a previously posted answer. I also need the database table to ONLY display when someone has clicked the submit button. So, when I refresh the screen, the database table should not be on the page until I submit another entry.

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Main Memory Database Systems

Authors: Frans Faerber, Alfons Kemper, Per-Åke Alfons

1st Edition

1680833243, 978-1680833249

More Books

Students also viewed these Databases questions