Ver Mensaje Individual
  #7 (permalink)  
Antiguo 30/05/2008, 14:26
iozk
 
Fecha de Ingreso: mayo-2008
Mensajes: 499
Antigüedad: 16 años
Puntos: 1
Respuesta: problema con conectar/ver/ejecutar mi tabla de mysql a php

0 ) { // Leemos el contenido de la plantilla de temas $template = implode ( "iozk" , file ( "temas.html" )); include( 'iozk.html' ); while( $row = mysql_fetch_assoc ( $rs )) { $color =( $color == "black" ? "#5b69a6" : "white" ); $row [ "color" ] = $color ; mostrarTemplate ( $template , $row ); } } include( 'footer.html' ); ?> $sql = "SELECT id, autor, titulo, fecha, respuestas, ult_respuesta " ; $sql .= "FROM foro, ORDER BY ult_respuesta" ; $rs = mysql_query ( $sql , $con ); if( mysql_num_rows ( $rs )> 0 ) { // Leemos el contenido de la plantilla de temas $template = implode ( "" , file ( "temas.html" )); include( 'titulos.html' ); while( $row = mysql_fetch_assoc ( $rs )) { $color =( $color == "" ? "#5b69a6" : "" ); $row [ "color" ] = $color ; mostrarTemplate ( $template , $row ); } require( 'funciones.php' ); $id = $_GET [ "id" ]; $citar = $_GET [ "citar" ]; $row = array( "id" => $id ); if( $citar == 1 ) { require( 'configuracion.php' ); $sql = "SELECT titulo, mensaje, identificador AS id " ; $sql .= "FROM foro WHERE id='$id'" ; $rs = mysql_query ( $sql , $con ); if( mysql_num_rows ( $rs )== 1 ) $row = mysql_fetch_assoc ( $rs ); $row [ "titulo" ] = "Re: " . $row [ "titulo" ]; $row [ "mensaje" ] = "[citar]" . $row [ "mensaje" ]. "[/citar]" ; if( $row [ "id" ]== 0 ) $row [ "id" ]= $id ; } $template = implode ( "" , file ( 'formulario.html' )); include( 'header.html' ); mostrarTemplate ( $template , $row ); include( 'footer.html' ); ?>