Explore BrainMass

How to connect to a database with php

This content was STOLEN from BrainMass.com - View the original, and get the already-completed solution here!


I need assistance with the following problem please.

Write a short description of database connectivity with the Internet using one of the widely disseminated technologies. (i.e. using either active server pages or Java server pages or others).

Best Regards,

© BrainMass Inc. brainmass.com October 24, 2018, 11:38 pm ad1c9bdddf

Solution Preview

It is becoming more and more common for internet applications to use a database in their operation. This solution demonstrates how to connect to a MySql database in a php script.

Databases are frequently on servers other than the web server where the script resides. In order to use the database the script must make a network connection to the database. Connecting to a database requires three items: the ...

Solution Summary

This solution shows how to connect to a database in a php program. It also gives a brief explanation of different database user roles and permissions.

See Also This Related BrainMass Solution

Php code

Some tips about using php code to
- Add a new item to the database
- Delete an existing item from the database,

Note: need some help on how to use PHP code to add and delete item from database.

View Full Posting Details