Determine the PHP version on your server In this lesson, we are going to learn how to determine the PHP version running on our server using codes. Just follow these simple steps: Open any text editor (notepad, notepad ++, etc.).…
Tag: PHP tutorial
PHP Tutorials Compilation
PHP Tutorials Compilation Here are the list of our PHP Lessons and Tutorials Introduction to PHP scripting language PHP Tutorial – Learning the PHP Syntax PHP Tutorial – PHP Basic Data types PHP Variables PHP String Variable PHP if statement…
PHP-MySQL Lesson: UPDATE statement
UPDATE statement In this lesson we are going to write a PHP script that updates records in MySQL database using the UPDATE statement. Parameter of UPDATE command: UPDATE – Performs an update MySQL query SET – Updates (assigns new value…
PHP-MySQL Lesson: Select Data in Database and Display the record in HTML table
PHP-MySQL Lesson: Select Data in Database and Display the record in HTML table In this lesson we are going to write PHP scripts that select records in MySQL database and display it in HTML table. The SELECT statement in sql…
PHP-MySQL Lesson: Select Database
Select Database After we have establish the connection in MySQL server, we have to select a database. To do that we are going to use the mysql_select_db() function. Syntax: mysql_select_db(databasename,connection) Parameter: databasename – the database name you want to use.…
PHP-MySQL Lesson – Create Table
Creating a Table In this lesson we are going to write a PHP script that will create a table in our MySQL database. To create a table in MySQL, use the command CREATE TABLE tablename. In PHP,mysql_query() function is used to execute…
PHP-MySQL Lesson – Create Database
Creating a Database The CREATE DATABASE statement in sql is used to create a database in MySQL. In PHP,mysql_query() function is used to execute sql query like insert, delete, update, select etc. Here is an example PHP script that creates a…
PHP-MySQL Lesson: Introduction
PHP-MySQL Lesson: Introduction PHP and MySQL PHP is an open source scripting language used to create dynamic website. MySQL is also an open source relational database system that uses Structured Query Language (SQL). PHP supports variety of databases, but MySQL…
PHP Tutorial – PHP Forms
In this tutorial we are going to learn how to take data entered by the user in an HTML form and process it into PHP script and display the output. We need two pages here namely the process.php and the…
PHP Tutorial – PHP $_GET and $_POST
PHP $_GET and $_POST The PHP $_GET and $_POST variables are used to retrieve information from forms, like user input. The $_POST Function The built-in $_POST function is used to collect values in a form with method=”post”. Information sent from…