title: if else statement inside echoed TD
body: <p>Hi and Good day to everyone, (Can't decide whether to greet morning, afternoon or evening) :P</p>
  
  <p>I would like to ask for some advice or rather help with regards to my problem. I have a code which displays some number including SMS number(SIM card number) and cage number. This code was inside an echoed TD as shown below</p>
  
  <p><strong>ORIGINAL CODE</strong></p>
  
  <pre><code>          &lt;table style = 'font-family:Verdana;font-size:11px;' width = '100%' cellpadding = '1px' cellspacing = '1px'&gt;
                            &lt;tr&gt;
                              &lt;td width = '100px' align = 'right'&gt;Cage No:&lt;/td&gt;
                              &lt;td&gt; ".$row2['gps_num']."&lt;/td&gt;
  
                              &lt;td width = '100px' align = 'right'&gt;Sim Card No.:&lt;/td&gt;
                              &lt;td&gt; ".$row3['SIM1']."&lt;/td&gt;
  
                              &lt;td width = '100px' align = 'right'&gt;Animal Type:&lt;/td&gt;
                              &lt;td&gt; ".$devtype."&lt;/td&gt;
  
                              &lt;td width = '100px' align = 'right' colspan='2'&gt;".$label."&lt;/td&gt;
  
                            &lt;/tr&gt;
              &lt;/table&gt;
  </code></pre>
  
  <p>Now I want to place an if elseif statement in which if $row2['gps_num'] has 11 characters then it will display SIm card number instead of cage number. (just focus on the first TD) and if $row2['gps_num'] has more than 11 characters then the first TD will display Cage No.</p>
  
  <p>Here's what I got so far, but can't determine correctly where i went wrong</p>
  
  <pre><code>                            &lt;tr&gt;
                          &lt;td&gt;
                            &lt;table style = 'font-family:Verdana;font-size:11px;' width = '100%' cellpadding = '1px' cellspacing = '1px'&gt;
                            &lt;tr&gt;
                              if (.$row2['gps_num']. &lt;= 11) {
                                &lt;td width = '100px' align = 'right'&gt;Cage No.&lt;/td&gt;
                                &lt;td&gt; ".$row2['gps_num']."&lt;/td&gt;
                              }
                              elseif (.$row2['gps_num']. &gt; 11 ) {
                                 &lt;td width = '100px' align = 'right'&gt;Sim Card No.:&lt;/td&gt;
                              &lt;td&gt; ".$row3['SIM1']."&lt;/td&gt;
                              }
  
                              &lt;td width = '100px' align = 'right'&gt;Animal Type:&lt;/td&gt;
                              &lt;td&gt; ".$devtype."&lt;/td&gt;
  
                              &lt;td width = '100px' align = 'right' colspan='2'&gt;".$label."&lt;/td&gt;
  
                            &lt;/tr&gt;
  </code></pre>
  
  <p>I appreciate all the help. Thanks.</p>