Pages

Ads 468x60px

Thursday, March 29, 2012

Week 6 : PHP continue...

بسم الله الرحمن الرحيم  


Today we start the class with refresh and recall back last week lesson..
  1. Testing server => xampp -> on/set security
  2. Setting Database
  3. create site
  4.  create connection
  5. create PHP
Dr Zaida start the class with lower gear to recall above steps. But suddenly after 5.30 pm she jump into speed gear as usual :). Luckly i've done the homework insert security last week, Alhamdulillah no problems to follow her speed. We learn how to create login page with security.
User login page

Invalid user login
Registration Page

Welcome page for registered user login
If user click information, registered list user will appear
Using server behavior to create user logout in Dreamweaver CS3



Log Out User interface
Restrict interface will appear if user direct type the URL address
At the end of our lesson we have learn how to create admin page using admin level. Each level admin will have different interface. At the top speed lesson, I got the problem cannot read database hmmm pity me.. I've delete the table and redo the table at home. It's the outcome :

Admin login interface

Admin main page
2nd admin page
If admin login not successful, system need user to register as user not as an admin.



*** Class activity need to submit personally via e-learning to get a marks.




Friday, March 23, 2012

Week 5 Homework : Inserting Security into the System

بسم الله الرحمن الرحيم 
This group activity, we can use either ASP or PHP. My group mate me, Masni and Fadlee. We try to use both ASP and PHP to develope our skill in authoring system. Dengan semangat yang berkobar-kobar after class i do it immediately (am i eddicted to web developing?? huhuhu seem like that..). I have try to do in ASP first.. Alhamdulillah it's work. Here is some interfaces in the system :

User Login Interface

If the student already register, they can login and access the system. After click logout, user will go to login interface.

Invalid user login

Registration Form
If user direct type url address, restricted will appear for 2 second and then log in page will appear.

I Can sleep tigh tonight after finished my task.. zzzzzzzz

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!!!

Thursday, March 15, 2012

Week 4's homework

After some research and many try and error, at last i've solve the previous problem, Alhamdulillah.. But now i've new problem :( The problem is during setup connection. When testing to the data base there is an error :



HTTP error 405 Method Not Allowed

The same problem facing with my colleague, Pn Masni.Hope we'll solve this problem ASAP. Got to go rest first n see u then..


---------------------------------------------------------------------------------------


19 March 2012 :


Hasil bertapa sejam di lab hari ni, alhamdulillah most complete asp homework. Cuma tinggal buat repeatation view the records.. will be edit again.


database connection success

 registration page success

recordset connection success

viewing and entering registration form at internet browser

After keep trying to settle all the problems database connection and after i met with lab technicians, Mr Ali still cannot settle it in Windows 7. My OS is Windows 7 Ultimate cannot support the applications, but only Windows 7 Professional can support them. If i want to do in my laptop, i must be either to convert to Windows XP Pro Win 7 Pro.

--------------------------------------------------------------------------------------
22/3/2012


Alhamdulillah... Finally done the 'simple homework' from Dr Zaida. Look 'simple', but for those not familiar with web development it's sooooooo hard :D (refer to myself also). During completing this homewrok i've formatted my laptop to Win XP Pro. Its 2 times formatted within 24 hours (after a decad not doing his job). TQ my fren, Fadlee for remind n refresh me back how to do it!  Berbaloi kan Pn Masni g disscussion this homework with my kids along together hehehe.





Taraaaaa it's the outcome from our disscussion :

 Interface for input data


Interface for output data

Homework was sent via e-learning UTM as below :