Question: Learn to create database on Mysql database Learn to create user on MySql database Learn to create……

Learn to create database on Mysql database Learn to create user on MySql database Learn to create PDO and write PHP script to access information from MySql database. In this lab, we will (1) Create a database call it products. 2) Inside this database, create a table and call it books (3) Insert 7 records such as shown in the following to the table books. The first column is ID, 2 is title, the third is category, and the last one is ISBN. ID is the primary key column 1 Visual Basic 2010 How to Program 2 Visual C# 2010 How to Program 3 Java How to Program 4 C++ How to Program 5 C How to Program 6 Internet&World Wide Web How to Program Programming 0132151006 7 Operating Systems 4) Create a user iw3htp with its password as password. This user have the all privileges on products Programming 0132152134 Programming 0132151421 Programming 0132575663 Programming 0132662361 Programming 0136123562 Operating Systems 0131828274 databases. (S) Create an index.html which look like the following. It contains a drop down list with five options. A submit button with face value of Send Query Querying a MySQL database. Select a field to display Send Query ISBN (6) Write a php file and call it database.php which will process the web form data when Send Query submit button pressed. The database.php will create a PDO to connect that allows your php script file to connect o database products.

Don't use plagiarized sources. Get Your Custom Essay on
Question: Learn to create database on Mysql database Learn to create user on MySql database Learn to create……
Get an essay WRITTEN FOR YOU, Plagiarism free, and by an EXPERT!
Order Essay

Learn to create database on Mysql database Learn to create user on MySql database Learn to create PDO and write PHP script to access information from MySql database. In this lab, we will (1) Create a database call it products. 2) Inside this database, create a table and call it books (3) Insert 7 records such as shown in the following to the table books. The first column is ID, 2 is title, the third is category, and the last one is ISBN. ID is the primary key column 1 Visual Basic 2010 How to Program 2 Visual C# 2010 How to Program 3 Java How to Program 4 C++ How to Program 5 C How to Program 6 Internet&World Wide Web How to Program Programming 0132151006 7 Operating Systems 4) Create a user “iw3htp with its password as password”. This user have the all privileges on products Programming 0132152134 Programming 0132151421 Programming 0132575663 Programming 0132662361 Programming 0136123562 Operating Systems 0131828274 databases. (S) Create an index.html which look like the following. It contains a drop down list with five options. A submit button with face value of “Send Query Querying a MySQL database. Select a field to display Send Query ISBN (6) Write a php file and call it database.php which will process the web form data when Send Query submit button pressed. The database.php will create a PDO to connect that allows your php script file to connect o database products.

Expert Answer

answers

Database Design:

C Computer Science question | Che xHow to use boolean and in Pyth X localhost/ 127.0.0.1 1phpMyAd+ С localhost/phpmyadmin/server-databases.php?server-1 Apps G Google O YouTube O admission e AdminLogin D suip euplu şuz . Man Gujarat: Off W data D Department of Com 2 DigitalGujarat-Sigma e Any python/jupyter l phpMyAdmin 巾Server 177001 @ Databases gSQL L status User accounts Export li Import d-Settings Replication t>Variables Charsets ▼ More Recent Favorites Databases New dna employee example fifa game Database name and then click on create Product Create information schema music store mysql performance_schema phpmyadmin pizza studinfo test Containing the word latin1 siedish_ci Check privileges latini_swedish_ci Check privileges latini-swedish-ci Check privileges latini swedish_ciCheck privileges latini-swedish-ci ! Check privileges latini_suedish_ci Check privileges information_schema utf8_senerelci Check privileges latini swedish_ciCheck privileges latini swedish ci Check privileges performance_schema utfs_generel_ci Check privileges utfs_bin Check privileges dna fifa game music store mysql Console admin ENG 05:54 PM

CREATE TABLE books (ID int NOT NULL AUTO_INCREMENT,Title varchar(255) NOT NULL,Category varchar(255),isbn int,PRIMARY KEY (ID));

insert into books(Title,Category,isbn) values(‘Visual Basic 2010 How to Program’,’Programming’,0132152134);
insert into books(Title,Category,isbn) values(‘Visual C# 2010 How to Program’,’Programming’,0132151421);
insert into books(Title,Category,isbn) values(‘Java How to Program’,’Programming’,0132575663);
insert into books(Title,Category,isbn) values(‘C++ How to Program’,’Programming’,0132662361);
insert into books(Title,Category,isbn) values(‘C How to Program’,’Programming’,0136123562);
insert into books(Title,Category,isbn) values(‘Internet & World Wide web How to Program’,’Programming’,0132151006);
insert into books(Title,Category,isbn) values(‘Operating Systems’,’Operating Systems’,0131828274);


CREATE USER ‘lw3htp’@’localhost’ IDENTIFIED BY ‘password’;

GRANT ALL PRIVILEGES ON * . * TO ‘lw3htp’@’localhost’;

Coding

<html>

<head><title>Product</title><!– Title here–>

<style><!– style sheet here–>

table {

border-collapse: collapse;

width: 100%;

}

th, td {

text-align: left;

padding: 8px;

}

tr:nth-child(even){background-color: #f2f2f2}

</style></head><!–Title set –>

<body>

<form method=”post”>

Enter value of n :<select name=”Query”>

<option value=”0″>*</option>

<option value=”ID”>ID</option>

<option value=”Title”>Title</option>

<option value=”Category”>Category</option>

<option value=”isbn”>isbn</option>

</select><br><!–Input text for enter number 1 –>

<input type=”submit” name=”OK” value=”OK”><!–Input Button for submit –>

</form>

<?php

if(isset($_POST[‘OK’]))

{

if($_POST[‘Query’]==”0″)

{

$con=mysqli_connect(“localhost”,”lw3htp”,”password”,”product”);

// Check connection

if (mysqli_connect_errno())

{

echo “Failed to connect to MySQL: ” . mysqli_connect_error();

}

$sql=”SELECT * FROM books”;

if ($result=mysqli_query($con,$sql))

{

// Fetch one and one row

echo ‘<div style=”overflow-x:auto;”>

<table>

<tr><th>ID</th>

<th>Title</th>

<th>Category</th>

<th>ISBN</th> </tr>’;

while ($row=mysqli_fetch_row($result))

{

printf (“<tr><td>%s</td> <td>(%s)</td><td>%s</td> <td>(%s)</td></tr>”,$row[0],$row[1],$row[2],$row[3]);

}

// Free result set

mysqli_free_result($result);

}

mysqli_close($con);

}

else

{

$con=mysqli_connect(“localhost”,”root”,””,”product”);

// Check connection

if (mysqli_connect_errno())

{

echo “Failed to connect to MySQL: ” . mysqli_connect_error();

}

$sql=”SELECT “.$_POST[‘Query’].” FROM books”;

echo $sql;

if ($result=mysqli_query($con,$sql))

{

echo ‘<div style=”overflow-x:auto;”>

<table>

<tr><th>’;

echo $_POST[‘Query’];

echo ‘</th>

</tr>’;

while ($row=mysqli_fetch_row($result))

{

printf (“<tr><td>%s</td></tr>”,$row[0]);

}

 

mysqli_free_result($result);

}

mysqli_close($con);

}

}

?>

</body>

</html>

output:

if you still have any dout regarding this question please comment and if you like my code please appreciate me by thumbs up thank you………

Top Grade Homework
Order NOW For a 10% Discount!
Pages (550 words)
Approximate price: -

Why Work with Us

Top Quality and Well-Researched Papers

We always make sure that writers follow all your instructions precisely. You can choose your academic level: high school, college/university or professional, and we will assign a writer who has a respective degree.

Professional and Experienced Academic Writers

We have a team of professional writers with experience in academic and business writing. Many are native speakers and able to perform any task for which you need help.

Free Unlimited Revisions

If you think we missed something, send your order for a free revision. You have 10 days to submit the order for review after you have received the final document. You can do this yourself after logging into your personal account or by contacting our support.

Prompt Delivery and 100% Money-Back-Guarantee

All papers are always delivered on time. In case we need more time to master your paper, we may contact you regarding the deadline extension. In case you cannot provide us with more time, a 100% refund is guaranteed.

Original & Confidential

We use several writing tools checks to ensure that all documents you receive are free from plagiarism. Our editors carefully review all quotations in the text. We also promise maximum confidentiality in all of our services.

24/7 Customer Support

Our support agents are available 24 hours a day 7 days a week and committed to providing you with the best customer experience. Get in touch whenever you need any assistance.

Try it now!

Calculate the price of your order

Total price:
$0.00

How it works?

Follow these simple steps to get your paper done

Place your order

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Receive the final file

Once your paper is ready, we will email it to you.

Our Services

No need to work on your paper at night. Sleep tight, we will cover your back. We offer all kinds of writing services.

Essays

Essay Writing Service

No matter what kind of academic paper you need and how urgent you need it, you are welcome to choose your academic level and the type of your paper at an affordable price. We take care of all your paper needs and give a 24/7 customer care support system.

Admissions

Admission Essays & Business Writing Help

An admission essay is an essay or other written statement by a candidate, often a potential student enrolling in a college, university, or graduate school. You can be rest assurred that through our service we will write the best admission essay for you.

Reviews

Editing Support

Our academic writers and editors make the necessary changes to your paper so that it is polished. We also format your document by correctly quoting the sources and creating reference lists in the formats APA, Harvard, MLA, Chicago / Turabian.

Reviews

Revision Support

If you think your paper could be improved, you can request a review. In this case, your paper will be checked by the writer or assigned to an editor. You can use this option as many times as you see fit. This is free because we want you to be completely satisfied with the service offered.

× Contact Live Agents