Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

208
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!