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

123
Views
PHP 7.2 Apache no ejecuta todo el código php

Realmente confundido aquí. PHP está funcionando hasta que llega a una declaración IF. Cualquier sugerencia / ayuda es muy apreciada.

 $sql2=("SELECT * FROM temporders WHERE cusid='$myid'"); $result2=mysqli_query($connP,$sql2); $count2=mysqli_num_rows($result2); $total=0; $itemNum=0; if ($count2>0) { while($row2 = mysqli_fetch_array($result2, mysqli_ASSOC)) { $total=($total+($row2['price']*$row2['qty'])); $itemNum=$itemNum+$row2['qty']; } } if ($total<1) { $total=0; } else { $total=number_format($total, 2, '.', ''); } ?> <div class="basket">

Todo lo anterior funciona perfectamente hasta que llega aquí, que es la siguiente etapa que produce cuando veo el código fuente de la página. Todo php se muestra desde esta etapa en adelante

 <div class="basket"> <? if ($total==0) { ?> <form action="../customer-page.html" method="get" name="cart" id="cart"> <? } else { ?> <form> <? } ?> <input type="hidden" name="page" id="page" value="southern-spas-saunas.html" /> <input type="hidden" name="delitem" value="0" /> <input type="hidden" name="myid" value="202003220001" /> <table width="250" border="0"> <tr> <td width="45"><input name="image2" type="image" value="Process" src="../1basket.gif" /></td> <td width="120">Total &pound; 0</td> <td>Items 0</td> </tr> </table> </form> </div>
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!