Ver Mensaje Individual
  #1 (permalink)  
Antiguo 23/03/2011, 15:34
Avatar de kittgromex
kittgromex
 
Fecha de Ingreso: marzo-2011
Mensajes: 7
Antigüedad: 13 años, 1 mes
Puntos: 0
You have an error

hola amigos saben estoy realizando una pagina y soy nuevo en php, tengo mi codigo pero me manda el seguiente error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'jos_chronoforms_asignacion' at line 1

ayudenme a corregir este problema plis.
les dejo el codigo para que lo analicen.


Código PHP:
<?php
include('conexion.php');
$sSQL "Select * jos_chronoforms_asignacion";
$res mysql_query($sSQL) or die(mysql_error());    
$rows_reg mysql_num_rows($res); 

?>

<p><a href="nuevo.php">Nuevo Registro</a></p>
<table width="456" border="0">
  <tr>
    <td>&nbsp;</td>
    <td>Matricula</td>
    <td>Tutorado</td>
    <td>Carrera</td>
    <td>A&ntilde;o</td>
    <td>Tutor</td>
    <td>&nbsp;</td>
  </tr>
  <?php
  
for($i=0;$i<$rows_reg;$i++)
   {
   
$fila_reg mysql_fetch_array($res);
  
?>
  <tr>
    <td><a href="modificar.php?matricula=<?php echo $fila_reg['matricula'];?>"> Editar</a></td>
    <td><?php echo $fila_reg['matricula'];?></td>
    <td><?php echo $fila_reg['tutorado'];?></td>
    <td><?php echo $fila_reg['carrera'];?></td>
    <td><?php echo $fila_reg['anio'];?></td>
    <td><?php echo $fila_reg['tutor'];?></td>
    <td><a href="procesa_borrar.php?matricula=<?php echo $fila_reg['matricula'];?>"> Borrar</a></td>
  </tr>
  <?php
  
}
  
?>
</table>