Pages

Ads 468x60px

Friday, March 23, 2012

Week 5 : Enjoy learning n working with PHP!

بسم الله الرحمن الرحيم 
Alhamdulillah this week much better than last week in ASP class. I can follow all Dr Zaida's high speed session in PHP and MySQL. Before work in PHP we need to install XAMPP first then set up Apache. Don't forget to TURN OFF IIS first before TURN ON the Apache. In class activity we had to create input and output site like last week in ASP but this week in PHP. It's enhance with login site with username and password. It's still using previous knowledge to connecting to database in Dreamweaver CS3. Diffrentiate between ASP and PHP is, in ASP connecting to database is using connection string and DSN while in PHP is using MySQL connection and need to enter MySQL's username and password. The rest is similar with using ASP like insert record and recordset.
MySQL interface

Insert Record in PHP

This is outcome in class activity this week :
Login page

Register page

Comment page

View Comments page


Last but not least, how to transfer PHP project to other PC :
  1. Copy folder site e.g mine is projek2 and database folder e.g mine is info.
  2. Paste site folder name: projek2 in c:/xampp/htdocs/ then database: info in c:/xampp/mysql/data/.
  3.  After that open Adobe Dreamweaver CS3. Create New Site. Make sure site name is same to with you have done previous. E.g mine is projek2. 
Good Luck!!!

0 comments:

Post a Comment