Author Archives: Help_adm

PHP XML Expat Parser

The built-in Expat parser makes it possible to process XML documents in PHP. What is XML? XML is used to describe data and to focus on what data is. An XML file describes the structure of the data. In XML, no tags are predefined. You must define your own tags. What is Expat? To read… Read More »

Category: PHP

PHP Database ODBC

ODBC is an Application Programming Interface (API) that allows you to connect to a data source (e.g. an MS Access database). Create an ODBC Connection With an ODBC connection, you can connect to any database, on any computer in your network, as long as an ODBC connection is available. Here is how to create an… Read More »

Category: PHP

PHP MySQL Delete

The DELETE statement is used to delete records in a table. Delete Data In a Database The DELETE FROM statement is used to delete records from a database table. Syntax DELETE FROM table_nameWHERE some_column = some_value Note: Notice the WHERE clause in the DELETE syntax. The WHERE clause specifies which record or records that should… Read More »

Category: PHP

PHP MySQL Update

The UPDATE statement is used to modify data in a table. Update Data In a Database The UPDATE statement is used to update existing records in a table. Syntax UPDATE table_nameSET column1=value, column2=value2,…WHERE some_column=some_value Note: Notice the WHERE clause in the UPDATE syntax. The WHERE clause specifies which record or records that should be updated.… Read More »

Category: PHP

PHP MySQL Order By Keyword

The ORDER BY keyword is used to sort the data in a recordset. The ORDER BY Keyword The ORDER BY keyword is used to sort the data in a recordset. The ORDER BY keyword sort the records in ascending order by default. If you want to sort the records in a descending order, you can… Read More »

Category: PHP

PHP MySQL The Where Clause

The WHERE clause is used to filter records. The WHERE clause The WHERE clause is used to extract only those records that fulfill a specified criterion. Syntax SELECT column_name(s)FROM table_nameWHERE column_name operator value To get PHP to execute the statement above we must use the mysql_query() function. This function is used to send a query… Read More »

Category: PHP

PHP MySQL Select

The SELECT statement is used to select data from a database. Select Data From a Database Table The SELECT statement is used to select data from a database. Syntax SELECT column_name(s)FROM table_name To get PHP to execute the statement above we must use the mysql_query() function. This function is used to send a query or… Read More »

Category: PHP

PHP MySQL Insert Into

The INSERT INTO statement is used to insert new records in a table. Insert Data Into a Database Table The INSERT INTO statement is used to add new records to a database table. Syntax It is possible to write the INSERT INTO statement in two forms. The first form doesn’t specify the column names where… Read More »

Category: PHP

PHP MySQL Create Database and Tables

A database holds one or multiple tables. Create a Database The CREATE DATABASE statement is used to create a database in MySQL. Syntax CREATE DATABASE database_name To get PHP to execute the statement above we must use the mysql_query() function. This function is used to send a query or command to a MySQL connection. Example… Read More »

Category: PHP

PHP MySQL Connect to a Database

The free MySQL database is very often used with PHP. Create a Connection to a MySQL Database Before you can access data in a database, you must create a connection to the database. In PHP, this is done with the mysql_connect() function. Syntax mysql_connect(servername,username,password); Parameter Description servername Optional. Specifies the server to connect to. Default… Read More »

Category: PHP