Go Back   Webmaster Malaysia Forum » Website Design & Development » Website Programming

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-02-2007, 11:00 AM
webek's Avatar
Novice Webmaster
 
Join Date: Aug 2004
Location: Kuching, Sarawak
Posts: 27
Rep Power: 0
webek is on a distinguished road
$var1+$var2=$var3 ?

Macamana nak buat?

katakan
$password="mypassword";
$var1="word";
echo $pass.$var1;
-------------------
Saya mahukan echo $password dimana "pass" dan "word" adalah variable dan result sepatutnya "mypassword".
__________________
http|//www.jelajahborneo.uni.cc
Semuanya Bermula Di Sini!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-02-2007, 02:42 PM
robot's Avatar
Senior Webmaster
 
Join Date: Jul 2006
Location: My
Posts: 969
Rep Power: 48
robot will become famous soon enough
setiap variable perlu diberikan value dahulu sebelum sah digunakan, dalam kes ini, $pass tidak sah kerana tidak diberikan value terdahulu.
mungkin anda mahu cuba menggunakan array()
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-02-2007, 12:52 PM
webek's Avatar
Novice Webmaster
 
Join Date: Aug 2004
Location: Kuching, Sarawak
Posts: 27
Rep Power: 0
webek is on a distinguished road
TQ for the idea

OK dah.

$password="mypassword";
$var1="word";
echo $pass[$var1];
-------------------
result "mypassword".
__________________
http|//www.jelajahborneo.uni.cc
Semuanya Bermula Di Sini!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +8. The time now is 05:35 PM. Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0 vBulletin skin by ForumMonkeys.com.


WebmasterMalaysia.com is Proudly Hosted by Exabytes Semi Dedicated Server.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60