Domain Discussion Board

Go Back   Domain Discussion Board > General > Tutorials

 
Reply
 
LinkBack Thread Tools Display Modes
Php Tutorials 7 + 8
Old
  (#1 (permalink))
andrew
Senior Member
andrew is an unknown quantity at this point
 
andrew's Avatar
 
Status: Offline
Posts: 212
Points: 67.2
Bank: 0.4
Total Points: 67.6
Donate
Join Date: Nov 2006
Rep Power: 0
Post Php Tutorials 7 + 8 - 11-05-2006, 03:05 PM

Tutorial 7

// Canada will only print if $country is ca

if ($country == "$ca")
echo ("Canada") ;

Tutorial 8

if ("$country == "ca")
echo ("CANADA") ;
} elseif ($country == "us") {
echo ("USA") ;
} elseif ($country == "jp") {
echo ("JAPAN") ;

// these country will only print if the $country is either ca, us, or jp


http://Destin-Designs.co.nr - Custom Design 4 U
10$ - 22$
   
Reply With Quote
Reply


Thread Tools
Display Modes

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

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

Points Per Thread View: 1.0
Points Per Thread: 15.0
Points Per Reply: 5.0


Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP tut 2 - Refining the simple form - using cookies holypanl Scripts 10 05-08-2007 09:39 AM
All Programming Tutorials - Online For Ye All! hariharan Wonderful Websites 17 04-29-2007 05:22 AM
PHP: A simple form holypanl Scripts 5 04-05-2007 11:33 AM
An Introduction to PHP siddhant_3s Tutorials 3 10-30-2006 05:41 PM
Free PHP, mysql Codes, Tutorials and forums weblord Wonderful Websites 3 10-25-2006 12:01 PM


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 ©2007, Crawlability, Inc.