Category Archives: PHP Lessons

PHP Web Development

PHP is a processor that resides on a server to process information. Most of the time this is done with a MySql Database. PHP processes forms, writes HTML and more on the internet. Below there are several articles and tips and tricks on how to use this software. PHP is a free and open source software and is the most popular processor on the internet. The website for PHP is php.net

INTERMEDIATE WEB DEVELOPMENT SET UP A SERVER LESSON 1

INTERMEDIATE WEB DEVELOPMENT SET UP A SERVER

We have completed the Absolute Beginner Web Development Courses. It has help a lot of people with the basics of HTML, CSS and JavaScript. However when it comes to web development there are a couple more things that you need to know in order to grow your knowledge. It is called “Programming Languages”. There are Read More

Checked Value Use Form Tag In PHP Loop For Radio Buttons

Checked Value Use Form Tag In PHP Loop For Radio Buttons

Recently I was working on a project that required the “checked” value on a radio button. I had put the form item in a php loop to update products for a marketing site. I used the following code. Example of Checked Value For Radio Select [code]<label class="btn btn-info active"><input type="radio" name="optradio" id="optradio’" value="shipped" checked>Shipped</label>[/code] This is Read More

Lost Password Script AJAX jQuery Bootstrap PHP and MySql

Lost Password Script AJAX jQuery Bootstrap PHP and MySql

This is a lost password script tutorial. I write it in AJAX, JQuery, Bootstrap, PHP and MySQL. Frequently people lose their passwords. Password reset scripts are almost mandatory with people expecting software to do everything for them. Writing scripts that lets people reset their passwords do pose some risks. Are they using a secure email Read More

Contact Form with AJAX jQuery Bootstrap PHP and MySql

Contact Form with AJAX jQuery Bootstrap PHP and MySql

In this tutorial we create a contact form that enters contact information into a database. It will then send an email to you from your website. We do this with AJAX, jQuery, Bootstrap, PHP and MySql. https://youtu.be/y4M_u–t5YA AJAX jQuery Functions Used ready() function to check the readiness of the DOM {Document Object Model} click() function Read More

Login Script with AJAX jQuery PHP and MySql

Login Script with AJAX jQuery PHP and MySql

Let’s create a login script with AJAX JQuery, PHP and MySQL in this tutorial. We will create a form to login to the system and use AJAX with JQuery for the process. Next we will use PHP to process the form and return data to the webpage without reloading. Then we will set session variables Read More

SANITIZE STRINGS BEFORE INSERTING INTO DATABASE PHP MYSQL AJAX JQUERY

SANITIZE STRINGS BEFORE INSERTING INTO DATABASE PHP MYSQL AJAX JQUERY

You need to sanitize your string before you insert them into your databases. We show you how to do that in this lesson with “FILTER_SANITIZE_STRING”, “FILTER_SANITIZE_EMAIL” and “FILTER_FLAG_STRIP_HIGH”. We use jQuery and AJAX to pass the variables to the processor. This lesson is a continuation of the last lesson Create Secure Password Sign Up Script With Read More

Create Secure Password Sign Up Script With PHP jQuery and AJAX

Create Secure Password Sign Up Script With PHP jQuery and AJAX

Create a secure password sign up script with PHP, jQuery and AJAX with this easy to follow tutorial. Preliminary steps for this tutorial is to go over the last post Create A Database and Table At The Same Time With PHP. If you are already familiar with creating database tables this is the structure for the database Read More

Create A Database and Table At The Same Time With PHP

Create A Database and Table At The Same Time With PHP

Create a database and a table at the same time with php in mysql. All you will need is the connection information to your database. This is what you will need. Preliminary Information Needed Connection to the host. For most of you this will be localhost. Mysql username. Mysql password. Applies To PHP5 + Mysql You can Read More

New PHP7 Lessons on the Horizon

PHP Web Development

The following was a deep thought out request that I received on YouTube. I will be making this series in the near future for people that are interested in programming. You can see the outline below. Stay tuned! Message About PHP7 from YouTube I am keeping an eye your on channel related to php. Are Read More

How To Make A Free Website Backup PHP & MySql

How To Make A Free Website Backup PHP & MySql

This post covers how to make a free website backup. Once finished you will be able to download a complete website backup zip file. This will also include your database. This task is very easy but I am going to explain the process in detail. Update: Backed by popular demand I was asked to do Read More

WordPress Site Trying To Download A File

WordPress Site Trying To Download A File htaccess addhandler

Sometimes when you transfer a wordpress site you will get errors. Keep in mind that your old server may be using a different version of PHP than your new server. If you keep getting prompted to download a file when you go to the front end of your website you may need to put this Read More

Disable PHP On A Directory With Htaccess

If you need to disable php on a directory with htaccess here is your script. Open up your text editor and paste this code in it. [code]<Files *.php> deny from all </Files>[/code] Upload it to the directory that you do not want PHP code executed. Most folders that are hacked in WordPress are… wp-content/uploads/ wp-includes Read More

Delete Duplicate Entries In MySql with PHP

PHP Web Development

I needed to delete duplicate entries in MySql with PHP. After some trial and error I wrote a script that will do it for me. What I needed to do was delete duplicate email addresses in a email script. Here is the code that made that magic happen.   [code] $result = $con->query("SELECT email FROM Read More

Use PHP to Mail a Form

use-php-to-mail-a-form

Using php to mail a form is a simple task. Grab the codes below to learn how to do it yourself. This is continuation of our last lesson “Create a Form in a PHP Function“. Edit the Functions.php File In order to accomplish this you will edit your functions.php form to look like it does Read More

Create A Form in a PHP Function

Have you ever wanted to put a form in a php function? You can do it and it is fast and easy. You can use this function anywhere on your website. Steps to Creating a form in a PHP Funtion First create 2 files, index.php and functions.php. These files will work together to get the Read More