https://github.com/codeadamca/php-big-picture
A basic walkthrough of using PHP to display content from a MySQL database.
https://github.com/codeadamca/php-big-picture
database learning-code mysql php sql
Last synced: about 1 year ago
JSON representation
A basic walkthrough of using PHP to display content from a MySQL database.
- Host: GitHub
- URL: https://github.com/codeadamca/php-big-picture
- Owner: codeadamca
- Created: 2020-05-18T13:51:12.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2025-01-26T22:10:28.000Z (about 1 year ago)
- Last Synced: 2025-01-26T23:18:55.890Z (about 1 year ago)
- Topics: database, learning-code, mysql, php, sql
- Language: PHP
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# A Basic Introduction to PHP and MySQL
A basic walkthrough of using PHP to display content from a MySQL database.
This walkthrough is meant to illustrate the process of using PHP to display database content in an HTML web page. This is not meant to be a tutorial, more of a quick example of the end goal of these series of PHP tutorials.
## Code Explanation
This block of code will connect our PHP file to the MySQL database:
```php
```
This block of code will execute an SQL query and display the result using basic HTML:
```php
';
echo '
'.$record['name'].'
';
echo ''.$record['website'].'';
echo '
';
echo '
';
}
?>
```
> Full tutorial URL:
> https://codeadam.ca/learning/php-big-picture.html
***
## Repo Resources
* [Visual Studio Code](https://code.visualstudio.com/)
* [Filezilla](https://filezilla-project.org/) (or any FTP program)