Find Jobs
Hire Freelancers

PDO if statement

$10-30 USD

Terminado
Publicado hace más de 5 años

$10-30 USD

Pagado a la entrega
Here is the code. If there are not records /result I want it to say "No Records Were Found" otherwise the results will show. I have been working with this for a couple of hours and for some reason I just can not get it to work if a PHP if statement... <?php $log_id = $result['log_id']; $query = "SELECT * FROM calls_for_service WHERE log_id = :log_id "; $stmt = $handler->prepare($query); $stmt->bindParam(':log_id', $log_id, PDO::PARAM_INT); $stmt->execute(); $result = $stmt->fetchAll(); foreach ( $result as $row ) { ?> <div class="container" style="background-color: #ffffff;"> <div class="row" align="left" style="color:black;"> <br> <div class="col-sm-2"> <font size="2"><strong> Case # &nbsp; </strong></font> </div> <div class="col-sm-1"> <font size="2"><strong>Call Time &nbsp; </strong></font> </div> <div class="col-sm-1"> <font size="2"><strong> Arrival &nbsp; </strong></font> </div> <div class="col-sm-1"> <font size="2"><strong> In Service &nbsp; </strong></font> </div> <div class="col-sm-5"> <font size="2"><strong> Actions &nbsp; </strong></font> </div> <div class="col-sm-1"> <font size="2"><strong> Edit &nbsp; </strong></font> </div> <div align="center" class="col-sm-1"> <font size="2"><strong> Delete &nbsp; </strong></font> </div> </div> <br> </div> <div class="container" style="background-color: #ffffff;"> <div align="left" class="row"> <div class="col-sm-2"> <em><font color="#008080"><?php echo $row['case_number']; ?></font></em> </div> <div class="col-sm-1"> <em><font color="#008080"><?php echo $row['time_of_call']; ?></font></em> </div> <div class="col-sm-1"> <em><font color="#008080"><?php echo $row['time_of_arrival']; ?></font></em> </div> <div class="col-sm-1"> <em><font color="#008080"><?php echo $row['time_in_service']; ?></font></em> </div> <div class="col-sm-5"> <em><font color="#008080"><?php echo $row['action']; ?></font></em> </div> <div class="col-sm-1"> <a href="call_for_service/[login to view URL]<?php echo $row['call_id']; ?>"><em><font color="#990000">Edit</font></em></a> </a> </div> <div class="col-sm-1"> <a href="call_for_service/[login to view URL]<?php echo $row['call_id']; ?>"><em><font color="#990000">Delete</font></em></a> </div> </div> <br> </div> <?php } ?> <br><br>
ID del proyecto: 18525295

Información sobre el proyecto

7 propuestas
Proyecto remoto
Activo hace 5 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
Adjudicado a:
Avatar del usuario
HI, i can help you here. Please come over chat and discuss in details. Thanks. ................................................
$10 USD en 1 día
5,0 (37 comentarios)
5,2
5,2
7 freelancers están ofertando un promedio de $16 USD por este trabajo
Avatar del usuario
Hi there, Quick and easy. Consider it done in the next 5 minutes. Seriously! I have a 99% project completion rate and a 4.99 reputation (out of max 5.0!) from more than 1150 projects from a period of 12 years. Thanks. I look forward to hearing from you! Best Regards, Rajesh Soni.
$15 USD en 0 día
5,0 (979 comentarios)
8,7
8,7
Avatar del usuario
Hello, if you award my bid I can send you code which displays "no records" etc. I can do it in 15 min.
$15 USD en 1 día
5,0 (910 comentarios)
8,3
8,3
Avatar del usuario
Hi, I can show "no records found" message when no records from database are fetched. I am certain I can do it.
$25 USD en 1 día
5,0 (375 comentarios)
7,3
7,3
Avatar del usuario
We Believe in Delivering Perfect Work and Providing Full Satisfaction to Our Client . We also Insure to Deliver the Work in the given Time Frame . we have highly Qualified Professionals in our team. Expertise in Photoshop, HTML , CSS, Javascript , PHP , yii2, laravel, NodeJs , AngularJs , ionic, AJAX , SQL , Crom Extension,Python MongoDB , Wordpress , Game Development and all the related Web Technologies.
$15 USD en 0 día
4,7 (23 comentarios)
4,6
4,6
Avatar del usuario
sure, inbox me and i can do it, today if u want, using motor in real time to see whats ur error, so write me
$25 USD en 0 día
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
I can do it if u give me chance i ll never let u down i need reviews here i ll provide u work with full satisfication and perfection
$10 USD en 1 día
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de UNITED STATES
Port Charlotte, United States
5,0
47
Forma de pago verificada
Miembro desde abr 30, 2010

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.