Tag: PHP

Home > Blog > ArchivesTag: PHP

How to connect to a MySQL database with PHP (Using MySQLi)

April 11, 2014 by in category PHP, Programming tagged as , , , , ,

(FYI: this example assumes you know some basic SQL) There are three main ways that you connect to a MySQL database using PHP: the original MySQL extension (function based), MySQL Improved (MySQLi – Object-oriented) and PHP Data Objects (PDO, Object-oriented). This little piece will be about using MySQLi to insert, update and get data from […]

0 0 Read more

PHP – Variables, Types and Operators

March 23, 2014 by in category PHP, Programming tagged as , , , , , , , , ,

What is a variable? A variable is like a custom-made box. It can only hold one thing at a time and youshould specify the type of thing you want to put in it when it’s being made.Each variable starts with a dollar sign ($) in PHP and can hold various types of data (e.g: strings (‘Hello’), […]

0 0 Read more

PHP – How to read the PHP documentation

March 23, 2014 by in category PHP, Programming tagged as , , , ,

A function is a list (or “block”) of instructions that can be “called” in a PHP script to execute them. How to use a function A function is, generally, a single word with capitalisation to show where two words were put together. e.g: <?php functionName(); ?> Some functions accept “arguments” inside the brackets which will […]

0 0 Read more
© Evan Smith 2009 - 2017