Tag phpmyadmin

PHP Example – AJAX Poll

Example – The HTML Page When a user chooses an option above, a function called “getVote()” is executed. The function is triggered by the “onclick” event: <html> <head> <script> function getVote(int) {   var xmlhttp=new XMLHttpRequest();   xmlhttp.onreadystatechange=function() {  …

PHP Example – AJAX Live Search

AJAX can be used to create more user-friendly and interactive searches. AJAX Live Search The following example will demonstrate a live search, where you get search results while you type. Live search has many benefits compared to traditional searching: Results…

PHP Example – AJAX and XML

AJAX can be used for interactive communication with an XML file. Example Explained – The HTML Page When a user selects a CD in the dropdown list above, a function called “showCD()” is executed. The function is triggered by the…

PHP – AJAX and MySQL

AJAX can be used for interactive communication with a database. AJAX Database Example – The MySQL Database The database table we use in the example above looks like this: id FirstName LastName Age Hometown Job 1 Peter Griffin 41 Quahog Brewery…

PHP – AJAX and PHP

AJAX is used to create more interactive applications. AJAX PHP Example The following example will demonstrate how a web page can communicate with a web server while a user type characters in an input field

PHP – AJAX Introduction

AJAX is about updating parts of a web page, without reloading the whole page. What is AJAX? AJAX = Asynchronous JavaScript and XML. AJAX is a technique for creating fast and dynamic web pages. AJAX allows web pages to be…

PHP XML DOM Parser

The built-in DOM parser makes it possible to process XML documents in PHP. The XML DOM Parser The DOM parser is a tree-based parser. Look at the following XML document fraction: <?xml version=”1.0″ encoding=”UTF-8″?> <from>Jani</from> The DOM sees the XML…

PHP XML Expat Parser

The built-in XML Expat Parser makes it possible to process XML documents in PHP. The XML Expat Parser The Expat parser is an event-based parser. Look at the following XML fraction: <from>Jani</from> An event-based parser reports the XML above as…

PHP SimpleXML – Get Node/Attribute Values

SimpleXML is a PHP extension that allows us to easily manipulate and get XML data. PHP SimpleXML – Get Node Values Get the node values from the “note.xml” file: Example <?php $xml=simplexml_load_file(“note.xml”) or die(“Error: Cannot create object”); echo $xml->to .…