View Single Post
  #9 (permalink)  
Old 04-23-2008, 01:10 PM
JimOfferman JimOfferman is online now
Senior Member
 
Join Date: Jan 2007
Location: The Netherlands
Posts: 1,410
JimOfferman is on a distinguished road
Default

Quote:
Originally Posted by Altoo View Post
Thank you very much!
The thing that bugs me about most of the programming (well apart from HTML) is that I can't see any examples of where the Mysql is used or where PHP is used. A lot of tutorials wander off into technicality's without examples of where Mysql/php is used.
MySQL is not actually a language, but a database product that supports the Structured Query Language (SQL).

In the context of web applications, PHP is used to build dynamic websites (as opposed to a 'static' website comprised of HTML pages stored on your server). When your dynamic website handles a lot of data, it generally makes sense to store that data in a database [but this is not a requirement]. At this point SQL comes in as the language you use to communicate with your database. Conceptually, all (MySQL) database driven PHP websites boil down to the following:

<?php
$myData = UseSQLToQueryDataFromDatabase();
WriteNiceHTMLPageWithData($myData);
?>

Easy huh?
__________________
Jim Offerman ~ music that moves you
blog - twitter - free music - patron powered!
Reply With Quote