Blog

Archive for the PHP Category


Sample PHP and MySQL to Insert Data from a Field Field into a MySQL Database and Display It on Another Page
Posted on June 19, 2015 in MySQL, PHP by Matt Jennings

/*
Set ‘name’ and ‘quote’ input/text area session variables
if …

Read more


Snippet of How to Insert Data from a Form Field into a MySQL Database Using PHP
Posted on June 19, 2015 in MySQL, PHP by Matt Jennings

/*
Set ‘name’ and ‘quote’ input/text area session variables
if …

Read more


Using PHP How to Connect, Fetch, Display, and Insert Values from/into a MySQL Database
Posted on June 19, 2015 in MySQL, PHP by Matt Jennings

In the new-connection.php file provided by Coding Dojo which allows me to connect to a MySQL database, make …

Read more


Using Hidden Input Tags in HTML and PHP for Forms
Posted on June 18, 2015 in HTML, PHP by Matt Jennings

<input type=’hidden’ name=’action’ value=’register’>

if(isset($_POST[‘action’]) && $_POST[‘action’] == ‘register’))
{
//call to validations here
}


How to Save a Random Number as a Session Variable in PHP
Posted on June 18, 2015 in PHP by Matt Jennings

<?php
session_start();

/*
If statement below saves a random number as session variable
so it won’t change when a form is submitted multiple times
until …

Read more