Showing posts with label dreamweaver. Show all posts
Showing posts with label dreamweaver. Show all posts

Tuesday, April 1, 2014

Create forum using php

1)Create table at phpmysql.Insert 3 rows: id,name and post


2)Open dreamweaver.file>new>php
3)You will used 3 types of server behavior here: insert record, recordset,repeat region
4)First insert form and type name and message. Put text field beside the name and message.Change the properties of the text field according to the name you insert at the database.name as name and message as post.
5)Then, insert submit button and change the button name to post.
6)Save it as forum.php.
7)Window>server behavior>insert record
8)Outside the form line, type comments from others

9)Go to window>Server behaviour>recordset

10)Go to binding panel and drag name and post under the comments from others. Then, highlite it and go to server behavior>repeat region.


Preview:







Develop Questionnaire and forum using php

For this week class we learnt how to create questionnaire and forum using php.

First, lets start with questionnaire.

1.You need to set up the database first.
 Login>create table>save

2. Open dreamwever>new>php
3.Toolbar layout>div tag.Next, insert form.
4.Type questions.For the answer we will use radio group. Click insert>form>radio group

-name type bangsa
-Label type the options/answer such as melayu,cina ,india and put the value 1,2,3
-click + if you want to add another option
-layout  using tick table
-click ok, and you will get this view

Besides, you also can tick *checked to the answer.This prevent user to leave unchecked for the question.

5. Insert Submit button.
6.Save your file and name it as quiz.html
7.Go to window>server behavior>insert record>after inserting, go to:thankyou.html ( will create later)


8.Now,we will create thank you page. File>new>html>type your text>save as thankyou.html


9.Here is the answer that have been key in
10.Other than that, we also can do analysis based on the answer. Such as, how many students agree for the question 1 b?

11.File>new>php>insert table>type text>


 put cursor at the table>server behavior>recordset>change name>connection;dmx>table choose quiz>columns tick all>filter: umur, = and entered value ,2 ( this refer on the value you insert at radio group)>ok


server behavior>display record count>display total record>choose recordset according to the name you have entered before>ok


arrange nicely by table

here is the preview

12.You also can find how many males with age 13-15 by using options advanced in recordset.This video might be help.



Forum tutorial will be in next entry.



Friday, March 21, 2014

more about php

Ok,first i'll share about the problems I encountered.

1. Using user authentication- no table found


   and when i click preview at previous exercice ( login.php) , this error came out:



Solution: Site>Manage site>check setting

2. When i closed my dreamweaver and opened it back to preview my project, this pop out came out.I posted my problem at the facebook group and a few of them says we dont need to set up each time we open the dreaweaver. The settings will be connect automatically. 


Solution : Click OK.It will bring to site management.Fill the settings.It was weird because i already fill it last time.So, ignore that feeling, and i just filled it.Clicked done, and this pop out came out and OK!


To double check it, I closed the dreamweaver, opened and previewed it...and it success.No pop out come out.

3.Using update record(updateuser.php), this pop out came out after i fulfilled all the empty box


Solution: phpMysql>table>drop id>add new row>add 1 column at beginning of table>tick index and A_I 

--not done yet and the pop out still came out

close pop out>at updateuser.php, add one row above the username>panel binding>drag recordset id to field id

done!

I'm going to do the tutorial next time since too many things to remember and i just don't get the flow.


wuhuu.okay,michael jordan.I will try my best :D



Tuesday, March 4, 2014

Menggunakan active server pages in dreamweaver

#Assalamualaikum.


Dalam kelas Isnin lepas, kami belajar macam mana nak menggunakan active server pages in dreamweaver cs 3. Tetapi waktu dalam kelas tak berjaya pun buat sampai habis. Jadi balik tu, kena lah mencuba sendiri..

Sudah 2 hari cuba tutorial yang diberi oleh Dr. Zaida.Namun ,masih tak berjaya. Petang tadi je hampir-hampir berjaya dah tiba langkah yang terakhir(step 7: execute file), tetapi......waktu nak insert record table not found lagi.aduhai.pening. Nasib lah kak Sakinah banyak tolong dan siap bagi kata-kata semangat lagi.huhu.hem..Ini dah try buat baru, pun masalah juga. Jadi dah buat keputusan tak nak cuba sendiri dah, nak jumpa yang pakar je :')

Masalah 1 :

Nak save file microsoff access dalam folder wwwroot.

keluar pop out : you need to have administor permission to save on this folder ( lebih kurang macam ini lah ayatnya)

Penyelesaian : Right klik pada wwwroot >properties>security>click User (COMPAQ-PC\User)>Edit>Permission for creator owner> Full control > ok




Masalah 2 : Insert into table keluar > *** table not found


 Penyelesaian : check semula folder data. Dan check setting yang ni:

Start>control panel> turn windows features on or off>expand internet information service>windows feature>world wide service>asp>ok

dan---- tutup microsoff access

dan---- connection string



Table 1 dah ada.gembira sangat masa ni:D

psssst: masalah table not found ni tidak pasti sebenarnya jala penyelesaiannya.sebab kebanyakkannya cuba dan jaya je,huhu

Masalah 3 : Step 7, execute file. Bahagian insert into table , tiba-tiba keluar ***no table found.last step ni.frust okay.


bila tekan define banyak kali keluar yang bawah ni:




Penyelesaian : belum dijumpai lagi :"|

***update.dah selesai masalah table not found.cara penyelesaian adalah download cs3 dan buat kat situ.Memang jadi,mudah sangat sebelum ni guna macromedia dmx2004.Old version sangat kot.Dr.Zaida cakap sebab operating system lain, dah maju sebab tu sistem tu tak boleh nak serasi dengan macromedia mx 2004.hem.lebih kurang macam tu lah

quote of the day:


Monday, February 24, 2014

hello dreamweaver

#Assalamualaikum




Today (24/2) was my first class for subject MPT1193. Since i've register late so i have missed 2 class.Too bad! But its okay I can catch up later by asking my friends ^_^ (always reminding myself that now I'm taking master so i need to be more independent)

At the beginning of class our lecturer Dr.Asykin was asking a few questions about the last week class.It was about the dynamic and static webpage. From answer given by other classmates, i understand that the difference of dynamic and static web page in aspect of database. Whereby in dynamic webpage there is no database while in static webpage, there is database.

 Wait a second! I think I should make a table to show the difference between dynamic and static webpage!




reference


logo for dreamweaver




Okay.now lets move to dreamweaver. Dreamweaver is use to create webpage. Just like windows with many versions, dreamweaver also does. During the class , we were using dreamweaver cs3 which have been installed in computer laboratory. 



There are 5 elements that we learnt


**I'm using dreamweaver MX2004

1)  Text

User can choose to type text on the design,split or code. But design is more preferable as we can see the content directly. Oh. I almost forgot to mention that dreamweaver is WYSIWYG (what you see is what you get). So, just simply type the text, choose colour,type of font and the size.

like this:

look at properties to choose the size font,colour, etc




2)Background image 



For background image, user need to consider :

  • resolution size : get the standard size 1024x768
  • don't just simply right click and save the thumbnail picture because you may get small size picture which will give repeating image for the background.
example of repeating image
Steps to insert image background:

1.click on Page properties under properties options
2.Click on Browse and choose the pictures. Make sure you consider things that i have mentioned above.



3. Here is the example with non-repeating background image :




4. While for inserting image on your page,

just simply click either INSERT or small icon IMAGE (refer to the highlighted), choose picture and click OK.


images insert done


3)Frame :

  • for the frame it has its own name.
Step to use frame

 1. Click File>New >choose Frameset in Categories>

* there so many choice here so you can click one by one and see the preview.





















2. You can put background colour or image for each frame. Click on page properties and choose form there.
3. After done with backgorund colour, you need to save all the frame set.
4.You will need to save four file .html. Click File > Save all ( this will be the one that contain all the frame)
5. Click File > Save frame as > _.html
6.To check, click on each frame and see the name on the above tab.











4)Link

  • used to move into other page
for link, just type the word and highlight and click on link folder at properties or you can put any link (url)


you also need to choose the target.

here is my simple website with  link


That's all.Still lot of things that need to be learn.




quotes of the day :