All the tutorials on Afmanuk will help you on your way to being a powerful webmaster. Taking you through many aspects of PHP throughly to assure that you too can soon be a very powerful PHP user.
So, you've mastered HTML and JavaScript. I guess the next stage is PHP! Don't worry. It isn't too hard. This tutorial is great for learning PHP right from the beginning teaching you all the basics to help you advance quickly on to more advanced concepts.
Want to learn php, we have set up a simple to follow quick guide to send you on your way.
We cover all the very basics of php also find our other tutorials covering an even wider range of php coding.
Platform(s): Linux, Windows, FreeBSD, Mac OSX, Sun Solaris
A function is a block of code which can be called from any point in a script after it has been declared. It is basically a compartmentalized PHP script designed to accomplish a single task. Functions are useful because they contribute to rapid, reliable, error-reducing coding, and increase legibility by tiding up complicated code sequences.
You should encode string values while passing in an querystring. We use UrlEncode to Returns a string in which all non-alphanumeric characters except -_. have been replaced with a percent (%) sign followed by two hex digits and spaces encoded as plus (+) signs.
Array does not have to be a simple list of keys and values; each array element can contain another array as a value, which in turn can hold other arrays as well. This way, you can create a multi-dimensional array. In this article principles of using multidimensional arrays are explained and source code defining multidimensional array and displaying the array values on the web page is given.
It is often necessary to arrange the elements in an array in numerical order from highest to lowest values (descending order) or vice versa (ascending order). If the array contains string values, alphabetical order may be needed. Sorting a one-dimensional arrays is quite easy.
Before you can get content out of your MySQL database, you must know how to establish a connection to MySQL from inside a PHP script. To perform basic queries from within MySQL is very easy. This article will show you how to get up and running.
Sometimes when you write code, you want to perform different actions for different decisions. You can use conditional statements in your code to do this. In this tutorial we will look at two structures: if...else and switch statements.
Working with sessions in PHP is very basic. You can pass values to session as key/value pairs. To store and receive data from sessions are very easy to use.