Ver Mensaje Individual
  #1 (permalink)  
Antiguo 21/07/2012, 05:25
Avatar de jusvan
jusvan
 
Fecha de Ingreso: julio-2012
Mensajes: 3
Antigüedad: 11 años, 9 meses
Puntos: 0
Pregunta Problema con consulta

Hola tengan todos un buen dia
soy algo nuevo pero se algo de php tengo un problema con el siguiente código

lo que trata es de mostrar atravez de una consulta llamando a un botón buscar
aqui esta la verdad e intentado muchas cosas pero no resulta alguien me podría corregir el error que tenga indicándome el problema si es tan amable :

Código PHP:
<? 
        $id_usu 
$_POST['txt_id'];
        if (isset(
$_POST['btn_busact'])){
        
        
$result=mysql_query("select * from actividades where id_dapter='$txt_id' and cmb_ matact='$cmb_matact' and gra_act='$cmb_gradact' ")or die( mysql_error() );  
        while (
$row=mysql_fetch_array($result)){
        echo 
'<tr>';
        echo 
'<td valign="top" width="100px">Actividad:</td>';
        echo 
'<td valign="top"><b>'.$row["nom_act"].'</b></td>';
        echo 
"</tr>";
        echo 
'<tr>';
        echo 
'<td valign="top">Materia:</td>';
        echo 
'<td valign="top">'.$row["mat_act"].'</td>';
        echo 
"</tr>";
        echo 
'<tr>';
        echo 
'<td valign="top">Grado:</td>';
        echo 
'<td valign="top">'.$row["gra_act"].'</td>';
        echo 
"</tr>";
        echo 
'<tr>';
        echo 
'<td colspan="2"><hr /></td>';
        echo 
'</tr>';
        echo 
'<tr>';
        echo 
'<td valign="top">Descripcion:</td>';
        echo 
'<td valign="top">'.$row["com_act"].'</td>';
        echo 
"</tr>";
        echo 
'<tr>';
        echo 
'<td valign="top">Link:</td>';
        echo 
'<td valign="top">'.$row["link_pagi"].'</td>';
        echo 
"</tr>";
        echo 
'<tr>';
        echo 
'<td colspan="2"><hr /></td>';
        echo 
'</tr>';
        }

Última edición por jusvan; 21/07/2012 a las 06:34