IF/ELSE on Parents And Children!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
christalix
Forum Newbie
Posts: 6
Joined: Tue Oct 13, 2009 3:50 pm

IF/ELSE on Parents And Children!

Post by christalix »

l need help !

I have a variable called $value with $key and this variable has another variable called $value2 with $key2.
Both has content which are in my Database.

Now, l want to use an if/else argumentation to echo a statement!

1.If there is no $value2 in $value , please echo hallo!


2.Next question
And if there is $value2 in $value1 but no content in $value2, echo " hallo.

This is how l went with the first!

if(empty($value['content]))
echo "X";
else
echo "Y";



Well, it does not work fine.
Post Reply