GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - FujiClado/aws-alb-php-mysql-project: php script to print database table

BranchesTags
Open more actions menu

Latest commit

 

History

3 Commits
3 Commits

Folders and files

NameName
Last commit message
Last commit date
README.md
README.md
 
 
index.php
index.php
 
 

Repository files navigation

Database Setup

########################################################################
Example Databse
########################################################################

create database college;
use college;

########################################################################
Example table
########################################################################

CREATE TABLE students(
name VARCHAR(20) NOT NULL,
age INT(3) NOT NULL,
email VARCHAR(30) NOT NULL
);

########################################################################
Example table content
########################################################################
INSERT INTO students(name,age,email) VALUES('kevin',20,'[email protected]');
INSERT INTO students(name,age,email) VALUES('sam',24,'[email protected]');
INSERT INTO students(name,age,email) VALUES('john',23,'[email protected]');
INSERT INTO students(name,age,email) VALUES('jane',25,'[email protected]');
INSERT INTO students(name,age,email) VALUES('devon',23,'[email protected]');
INSERT INTO students(name,age,email) VALUES('nelson',22,'[email protected]');
INSERT INTO students(name,age,email) VALUES('ron',26,'[email protected]');
INSERT INTO students(name,age,email) VALUES('jenna',23,'[email protected]');
INSERT INTO students(name,age,email) VALUES('julia',22,'[email protected]');
INSERT INTO students(name,age,email) VALUES('emma',21,'[email protected]');

Changing Database Connection Variables

# vim index.php

<?php
  
// Database Connection

$user = 'root';         
$password = 'mysqlroot123'; 
$database = 'college'; 
$servername='localhost:3306';
# vim index.html

<head>
    <meta charset="UTF-8">
    <title>This Version 1</title>
    <!-- CSS FOR STYLING THE PAGE -->

Changing Version

# vim index.php

<head>
    <meta charset="UTF-8">

    <title>This Version 1</title>  <<==========
    <style>
        table {
            margin: 0 auto;
            font-size: large;
            border: 1px solid black;
        }

About

php script to print database table

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

4 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.