Jump to content

[SOLVED] Stuck with Operators... Easy solution I'm sure


theredking

Recommended Posts

Hello... I'm trying to create an if statement that creates two outcomes. The else, and elseifs will also work in the  same format. If I do it this way, link2 works, but link 1 becomes "www.mysite.com/scripts/1"

 

if ($choice=="Banana") 
$link1 = "http://www.mysite.com/1" && 
$link2 = "http://www.mysite.com/2";

 

What am I doing wrong?

 

Thank you in anticipation!

 

Rory

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.