Ver Mensaje Individual
  #1 (permalink)  
Antiguo 22/02/2012, 15:01
desoler
 
Fecha de Ingreso: agosto-2008
Ubicación: Miami, FL
Mensajes: 210
Antigüedad: 15 años, 8 meses
Puntos: 2
Pregunta mostrar variable si tiene contenido

Hola a todos.
Necesitaría un poco de guia y/o ayuda.
Los clientes dejan sus comentarios y estos se almacenan en mi BD, pero no todos los clientes dejan comentarios.
Lo que necesito es saber como mostrar por ejemplo un texto que diga "comentario" cuando hay y al hacer click mostrarlo, pop up, debajo, al lado, me da igual, siempre que después de leerlo lo pueda cerrar.
El código que utilizo es el siguiente:

.....//
$datos_sql = mysql_query("SELECT * FROM datos ORDER BY personalID DESC limit " . $limit[0] . ', ' . $limit[1]);

echo "
<table class='css3' id='mytable' cellspacing='0'>
<tr class='nobg'>
<th scope='col'><strong>Personal ID</strong</th>
<th scope='col'><strong>Date</strong></th>
<th scope='col'><strong>Client Information</strong></th>
<th scope='col'><strong>Vehicle Information</strong></th>
<th scope='col'><strong>Comment</th>
<th scope='col'><strong>Pickup/Dropoff</strong></th>
<th scope='col'><strong>Shipping On</strong></th>
<th scope='col'><strong>Pre/Quote</strong></th>
<th class='title' scope='col'>Pre/Quote</th>
<th class='title' scope='col'>Quote</th>
<th class='title' scope='col'>Email</th>
<th class='title' scope='col'>Archive</th>
<th class='title' scope='col'>Delete</th>
</tr>

";

while ($fila = mysql_fetch_array($datos_sql))
{
echo"
<tr class='spec' >
<td align=center>ID: ".$fila['personalID']."</td>
<td align=center>".$fila['fecha_registro']."</td>
<td>".$fila['first_name']." ".$fila['last_name']."<br />".$fila['phone']."<br />".$fila['email']."</td>
<td>".$fila['year1']." ".$fila['make1']." ".$fila['model1']."<br />".$fila['vehicle_type_id1']." <strong>Runs?:</strong>(".$fila['vehicle_runs'].")<br />".$fila['vehicle_type_other1']."</td>
<td>".$fila['comment']."</td>
<td><strong>From: </strong>".$fila['pickup_city']."
.......//

se puede hacer de alguna forma?

desde ya muchas gracias.