Código php:
Ver original
<?php include('config.php'); { $search_word=$_GET['search_word']; $sql=mysql_query("SELECT * FROM tabla_registros WHERE matricula LIKE '%$search_word%' ORDER BY registrado"); if($count > 0) { { $matricula=$row['matricula']; $bold_word='<b>'.$search_word.'</b>'; ?> echo "<table cellspacing='1' class='tablesorter'> <thead> <tr> <th>Nombre</th> <th>Matricula</th> <th>Concepto pagado</th> <th>Cantidad pagada</th> <th>Folio de pago</th> </tr> </thead>"; while($row = mysql_fetch_array($sql)) { echo "<tbody> <tr>"; echo "<td class='name'>" . $row['nombre'] . "</td>"; echo "<td class='id'>" . $row['matricula'] . "</td>"; echo "<td>" . $row['concepto'] . "</td>"; echo "<td> $ " . $row['valor'] . " pesos</td>"; echo "<td>" . $row['folio'] . "</td>"; echo "</tr>"; } echo "</tbody> </table>"; <?php } } else { echo "Verifica la matricula, no se encontraron registros."; } } ?>
entonces... hace la conexion y la consulta y me imprime en pantalla la tabla pero no me da los datos, mas graficamente me arroja un error y esto:
![](http://www.imagenonline.com/img_a172868.jpg)
donde esta el o los errores?