Wednesday, 21 August 2013

If else insite echo php

If else insite echo php

i want to change this code:
echo"
td class='inhoud_c' width='5%'>".$i."</td>
<td class='inhoud' width='25%'><a
href='profile.php?x=".$naam."'>".$naam."</td>
<td class='inhoud_c' width='50%'>
<table border='0' cellspacing='0' style='margin: 0px;'>
<tr>
<td>
<img src='".$icon."' alt='' border='0'>
</td>
<td>
".$land."
</td>
</tr>
</table>
</td>
<td class='inhoud_c' width='20%'>
".gmdate("H:i:s", $time)."
</td>
</tr> ";
$i++;
To something like this, but i don't know how to do it :(
<td class='inhoud_c' width='20%'>
"if ($tijz >= 0){
gmdate("H:i:s", $tijz);
}
else {
echo "Time's Up!";
}
</td>
So i want a if else statement insite echo, But when i try this the rest of
my code doesn't work,
Can someone help me,
Greetz Kevin

No comments:

Post a Comment