background preloader

PHP

Facebook Twitter

Selecting data using JDatabase. Version Note: While this document pertains to Joomla! 2.5 and 3.x, $db->query() throws a deprecated notice in Joomla 3.0+. In that case, change $db->query() to $db->execute(). However note $db->execute() does not work in Joomla 2.5. This tutorial is split into two independent parts: Inserting, updating and removing data from the database. Selecting data from one or more tables and retrieving it in a variety of different forms This section of the documentation looks at selecting data from a database table and retrieving it in a variety of formats. Introduction Joomla provides a sophisticated database abstraction layer to simplify the usage for third party developers.

Joomla can use different kinds of SQL database systems and run in a variety of environments with different table-prefixes. The Query To obtain a new instance of the JDatabaseQuery class we use the JDatabaseDriver getQuery method: $db = JFactory::getDbo(); $query = $db->getQuery(true); Selecting Records from a Single Table . . . Function Reference. ONLamp.com. Building Photo Uploaders with XAML Who says Windows can't play nice with open source applications? Jack Herrington uses the XAML technology on Windows Vista to create a visually appealing and user-friendly image uploading application for getting pictures into a PHP web application. [Windows] Managing Sessions and State with PHP HTTP is stateless. If you've ever written a web application where user data matters, you know that managing that data can be troublesome. There are two kinds of data, though: page and session data.

Understanding the differences can help you develop better and more easily. Brian Fioca explains. Autofilled PHP Forms PHP makes handling interactive web pages easy--but when you have large forms to fill out, errors to handle, and lots of data to pass back and forth, you can make your life easier by making PHP fill in all the form values for you. Improve Your Build Process with Ant Building and bundling web applications hasn't exactly grown easier over the years. A Tourist's Guide. Everyone knows the php.net site. All of us went there sooner or later, and will keep going back there. This is the central reference point for PHP users, and there is a wealth of information there. Not all of it is obvious. Come with me, I'll show you. This is the primary web site. The front page is where major news is published: new PHP versions, security updates, and new projects launched. This is the home of the download page, for everyone to get the latest version of the PHP source code and binaries for Windows.

The next most visited section is the documentation. The support page has all the directions to a wealth of resources both inside and outside of PHP.net. Now, buckle up your seat belt, and stop smoking. This is where speakers at various PHP-related conferences keep their slides. News.php.net is the web interface to the PHP mailing lists. PEAR is the next revolution in PHP. This page provides set of useful tools for PHP Manual translators and contributors.

A Tourist's Guide. PEAR - PHP Extension and Application Repository. Manual. PHP & MySQL: Novice To Ninja, 5th Edition. The History of PHP. From Techotopia Purchase and download the full PDF and ePub versions of this eBook for only $8.99 Every once in a while a person faces a particular problem or requirement to which there appears to be no existing solution. Faced with this problem the person decides to create a solution to provide the needed functionality. Having developed the solution to their problem it then occurs to them that others may need to solve the same problem, and they decide to make their solution freely available to others who, in turn, can use and improve on it. Within a short period of time many people adopt the technology and work on it, adding new features they feel will be useful. The history of PHP is just such a story. [edit] The Creation of PHP The first version of what came to be known as PHP was created in 1995 by a man named Rasmus Lerdof.

The name "Personal Home Page/Forms Interpreter" was later shortened to PHP/FI and eventually renamed to represent "PHP: Hypertext Preprocessor". Practical PHP Programming.