Archive for Tutorial

MySQL

Learning MySQL/*First what needs to be done is to create a database for users to store the table; in order to do this enter*/CREATE DATABASE (database name);/*example CREATE DATABASE members;*//*next is to create a table within the database, to do this select the database you wish to use, for example ‘members’ typing ‘USE members’ into MySQL. Then type*/CREATE TABLE `members` /*to create a table called MEMBERS*/(
`id` int(4) NOT NULL auto_increment, /*sets up the classification and

`username` varchar(65) NOT NULL default ”, /*setting up the username variable and allowing a maximum of 65 characters*/

`password` varchar(65) NOT NULL default ”, /*setting up the password variable and allowing a maximum of 65 characters*/

PRIMARY KEY (`id`) /*ordering of the table by listing them in the order they sign up for the website, in this case by ID NUMBER*/
) TYPE=MyISAM AUTO_INCREMENT=2 ; /*not to sure what this does however in my case the coding didn’t work*/

– Dumping data for table `members`
INSERT INTO `members` VALUES (1, ‘john’, ‘1234′); /*this is setting up the user data into the table*/ ALTERNATIVE CODING THAT DOES WORK FOR MYSELFCREATE DATABASE members;USE members;CREATE TABLE tblUsers(
UserID INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
/*alternative to PRIMARY KEY(id) as labelled above*/
UserName VARCHAR(65),
UserPassword VARCHAR(25),
UserEmail VARCHAR(255));
All MySQL Coding is like actionscript in the sense that it is in between the (   ) brackets instead of {  } that actionscript usesINSERT INTO tblUsers (UserName, UserPassword, UserEmail) VALUES(‘Marc’,’1234’,’marctaylor6631@googlemail.com’);

More Tutorial Websites>!

http://www.freewebmasterhelp.com/tutorials/phpmysql

  

Offers users tutorials in a structures order of setting up the basics of php

 Here is a list of things PHP and MySql can do with one another, and the website offers advice on creating.

  • Banner Rotation. On this site, where each banner is, a PHP script is called. This opens a database and picks a random banner from it to show the visitor. It also counts the number of times the banner has been viewed and could, with a few changes, track clicks too. To add, change or edit the banners all I have to do is change the database and the script will pick the correct banners for all the pages on the site.
  • Forums. Hundreds of forums (message boards) on the internet are run using PHP and MySQL. These are much more efficent than other systems that create a page for each message and offer a wide variety of options. All the pages in the forum can be updated by changing one script.
  • Databases. One quite obvious example is sites which get all there information from a database. For example Script Avenue is run by a few scripts, which gain all their information from a large database. All the different script categories can be accessed in one script by just changing the URL to access a different part of the database.
  • Websites. If you have a large website and you want to change the design it can take a very long time to update and upload all the pages. With PHP and MySQL your whole website could be just one or two PHP scripts. These would access a MySQL database to get the information for the pages. To update the website’s design you would just have to change one page.

 ———————- Websites such as http://www.maketemplate.com/menu/ offer scripts for PHP CSS and HTML coding, giving you step by step instructions, like in this case an include menu template.

————————http://www.php-mysql-tutorial.com/ offers users the ability to work step by step of setting up PHP, and MySql with links to resource pages, Links to useful books, a question and answer page, PHP jobs currently in the market, tutorials (for example a gallery which will come in useful, CMS creation) and how to find php hosting web space. The tutorials are straight forward and I recommend this website to everyone who is starting to look into PHP web design.

————– http://devzone.zend.com/node/view/id/627 is also good as it goes from very basic PHP stuff however offers comment systems in which users can provide help with the tutorials and since PHP is open source, allow for their own personal updates/ customisations to the tutorials

————–http://www.tizag.com/mysqlTutorial/ offers downloadable PHP MySql PDF’s to help in the development, however again covers basic coding.

http://www.tutorialstoday.com/Programming/PHP.aspx offers 28 pages of PHP tutorials so if you cant find what you want here then you probably cant anywhere.

http://www.youtube.com/watch?v=BRd4xguBX6A and the linking pages on the right offer video tutorials of php basics, which are useful as not always text is straightforward to read. Linking pages include http://www.youtube.com/watch?v=Txj4mj5yom0 - covering the basics
http://www.youtube.com/watch?v=7JmSf9JfQjY- login pages
http://www.youtube.com/watch?v=7_G6Uh8saFk- login pages 2
http://www.youtube.com/watch?v=8JRICTFnViM- user login and cookies as well as a video http://www.youtube.com/watch?v=ZLvb-nAb7H4 showing how to hack Php Email which is useful because we can see how vulnerable PHP is to hackers. This video hacks into users emails in which you can read or forward users emails.

PHP Resources

Below is a list of PHP resources I have accumulated which have helped me in my understanding of PHP, and hopefully will help anybody else who wishes to pursue this area. Some of these resources are websites, and some are books. I will update the list as I find more tutorials and useful information.

PHP 5 in easy steps, by Mike McGrath - A good starting point, as mentioned in another post.

http://php.resourceindex.com/ - A portal site which gives links to hundreds of useful tutorials. Perhaps more useful to someone who has a basic knowledge of PHP, as I have found that beginners tutorials are often somewhat confusing.

http://www.phpbuilder.com/ - Another useful site for finding tutorials, with a good search facility leading to many helpful tutorials.

http://evolt.org/article/comment/17/60265/index.html - A great tutorial for a PHP login section with Remember Me features. Remember Me is a good feature to have on a login area and makes the users experience more enjoyable and easier. A more advanced tutorial.