Sometimes it becomes necessary to limit the number of queries to an external data source. Especially if they do not change constantly. For example, the exchange rate in the central bank. Or simply speed up the page l...
Consider uploading files to a PHP server using the POST method. This will require a form with the file field type and an enctype attribute with a multipart/form-data value.
<form method="POST" enctype="multip...
The examples are very abstract, since the cycles exist. You must select all the elements of the array for a given attribute. There are several solutions.
The most appropriate option in PHP is to use the built-in funct...
Consider two types of queries into the Joomla database by its own means. The code was written for CMS version 3.0 or higher. Perhaps in the versions below it will also work, but it was not checked.
For clarity, the ex...
Let's write a simple form for sending data to email using the PHP mail() function. Our form will also write data to a file on the server. The code is not related to any CMS and can be used anywhere.