Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PHP and SQL (Web Programming) Open the database.php file and change the dbname of the $dsn variable , the $username, and $password to correspond appropriately

PHP and SQL (Web Programming)

Open the database.php file and change the dbname of the $dsn variable, the $username, and $password to correspond appropriately with the information from the first step in these instructions.

$dsn = 'mysql:host=localhost;dbname=my_guitar_shop1'; ????????? HOW DO WE CHANGE THIS? $username = 'fsuclass_ositopeludo'; $password = 'fsuclass_ositopeludo';

try { $db = new PDO($dsn, $username, $password); } catch (PDOException $e) { $error_message = $e->getMessage(); include('database_error.php'); exit(); } ?>

I need help with the "change the dbname of the $dsn variable"

/*************

First Step:

To access the database on the Web host, use the following information:

Username: fsuclass_ and the username you chose. If my username is ositopeludo?, then my phpMyAdmin username is dsuclass_ositopeludo?.

Password: same as above

Database: same as above

********************/

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_2

Step: 3

blur-text-image_3

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

Databases DeMYSTiFieD

Authors: Andy Oppel

2nd Edition

0071747990, 978-0071747998

More Books

Students also viewed these Databases questions

Question

Types of cultural maps ?

Answered: 1 week ago

Question

Discuss the various types of leasing.

Answered: 1 week ago

Question

Define the term "Leasing"

Answered: 1 week ago

Question

What do you mean by Dividend ?

Answered: 1 week ago