Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

212
Visualizações
PHP Use of undefined constant php - assumed 'php'

PHP:

<div class=shadow-box>
  <h3 class=title style=font-size:20px>
  <?php 
    if($pet["pet_cat"] == 2):
  ?>
  <?php 
    echo $pet["pet_name"];
  ?>
   <?php 
      else:
  ?>
  <?php 
      echo "Please Help me";
   ?>
   <?php endif;
   ?>
   </h3>
   <p class=subtitle>
   <?php 
     if($pet["pet_cat"] == 2):
    ?>
    <?php
       echo $pet["english"];
    ?>
    <?php 
        else:
    ?>
    <?php 
       echo $pet["dog_english"];
     ?>
     <?php 
        endif;
      ?>
      <div class=image>
      <a href=<?php
                  echo base_url();
              ?>index.php/Pet/view/<?php echo $pet["petid"];?> id=listinglink target=_blank><img src=<?php $img = unserialize($pet["img"]); echo base_url();?>assets/img/<?php echo $pet["pet_hidenum"]."/".$img[0]?> class=img-responsive id=centerimg></a></div><div class="clearfix quick-info"><div class=left><p><span class=icon style=font-size:12px><img src=images/location.png alt=""></span><?php echo $pet["reg_postal"].",".$pet["reg_city"].",".$pet["reg_country"]?><?php if($pet["showtel"] == "Yes"):?><p><span class=icon><img src=images/phone.png alt=""></span><?php $mobile_phone_number = unserialize($pet["mobile_phone_number"]); echo $mobile_phone_number[0];?><?php endif;?><?php if($pet["pet_type"] == "Lost"):?><p id=rewardon><span class=icon><img src=images/reward.png alt=""></span>Reward:€ (EUR)</div><?php endif;?><div class=right><p style=margin-top:14px><img src=images/mini_logo.png alt=""style=width:95px><p>37070 Days Ago</div></div></div>

Error:

Use of undefined constant php - assumed 'php'

Why is it displaying error Use of undefined constant? I checked twice but I did not find anything wrong in my code. Your help is appreciated...............

over 4 years ago · Santiago Trujillo
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda