If statements within If statements
Posted: Sun Apr 22, 2007 8:07 pm
Jcart | Please use
Can someone give me the correct coding for this?
Jcart | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
How do i do it?
What im trying to do looks something like thisCode: Select all
<?php
if ($variable == "blah")
(
if ($variable2 == "blahblah")
{
$a = 1;
$b = 2;
$c = 3;
};
else
{
$a = 2;
$b = 3;
$c = 4;
};
)
else
{
echo "blah";
};
?>Can someone give me the correct coding for this?
Jcart | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]