tablo satırı veya link koymak için başka bir şekilde link koydum

0 Cevap php

i düğmesi oluşturulması için bir php kodu var

            for($i=1;$i<=$n;$i++)
    {
    $row=mysql_fetch_array($result);
    if($row['btn_color']==1)
    $btbg="side-button5.png";
    if($row['btn_color']==2)
    $btbg="side-button6.png";
    if($row['btn_color']==3)
     $btbg="side-button7.png";
    if($row['btn_color']==4)
    ?>
            <br>
             <table width="200" height="50" border="0" cellpadding="0" cellspacing="0">
              <tr>
             <td background="images/<?php echo $btbg ; ?>" style="background-repeat:no-repeat"><table width="100%" border="0" cellspacing="0" cellpadding="0">
             <tr>
              <td height="66">
              <div align="center" class="buttonside">
              <p>
    <a  class="buttonside" href="vpa.php?pgid=<?php echo $row['page_id']; ?>">
     <?php echo $row['btn_text']?></p>
              </a>
                                  </div>

                                    </td>
                                </tr>

                            </table>

                            </td>
                          </tr>
                        </table>
                       <?php
                       }
                       ?>

Bu kod iyi çalışıyor ancak bağlantı metni üzerinde, i tam düğmesi (arka plan) bağlantısını koymak istiyorum

Teşekkürler

0 Cevap