26387Variables and the Echo Statementhttp://www.apdz.com/phpbb/viewtopic.php?t=5Before setting a variable it might help to know what one actually is. A variable is basically a piece of memory which has a name and holds a 'value'. Open up your favourite HTML/PHP text editor, and type the text below.PHP > Tips and Tutorials > Introduction to PHPOct 15, 2006Chris
In the most basic sense, a class is a group of related functions. Think of them as parts of a factory: even though they do different things, they usually work together to create a common result.
Strings are probably what you will use most in your PHP script. From concatenating, looking for patterns, trim, chop etc. So I guess it's a good idea to take a better look at this creature. We will also take a peek at some string functions that you might find useful for everyday coding.
Using a feature that PHP offers, use we are allowed to do these server side includes to include both HTML and PHP pages, and actually any pages we really want to. Including HTML pages becomes very useful, in creating the same look and feel over your entire site, as we can include a standard header and footer on every page.
Let's get started. The first thing to do is connect to the database.The function to connect to MySQL is called mysql_connect. This function returns a resource which is a pointer to the database connection. It's also called a database handle, and we'll use it in later functions. Don't forget to replace your connection details.
Joining mailing list will entitle you
to receive occasional emails informing you of news and
updates to the site and any special offers that may be
of interest to you.