Solved

one row or two rows

Posted on 2011-02-21
2
240 Views
Last Modified: 2012-06-22
if $x>=4 do one row
else two rows

I need to do

<table>
<tr>
<td>
0
Comment
Question by:rgb192
2 Comments
 
LVL 27

Accepted Solution

by:
Lukasz Chmielewski earned 500 total points
ID: 34946048
Uhm... like this ?


<table>
<?php
   if($x >= 4){
   ?>
   <tr><td>one row</td></tr>
   <?php
   }else{
   ?>
   <tr><td>two rows</td></tr>
   <tr><td>two rows</td></tr>
   <?php
   }
?>
</table>

Open in new window

0
 

Author Closing Comment

by:rgb192
ID: 34946143
thanks
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo‚Ķ
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question