An open API service indexing awesome lists of open source software.

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.

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)