Ver Mensaje Individual
  #1 (permalink)  
Antiguo 22/10/2013, 10:24
leoangels
 
Fecha de Ingreso: marzo-2011
Ubicación: Zacatecas
Mensajes: 59
Antigüedad: 13 años, 1 mes
Puntos: 0
Exclamación Código PHP en pantalla

Tengo una duda muy enorme, tengo un sistema web que anteriormente hace dos años me funcionaba a la perfección hoy quise nuevamente usarlo y me sale el codigo php en pantalla bueno de cierta manera alguno les agrego el código que aparece:
fetch_object ()) { ?>
"; echo ""; echo ""; echo ""; echo' '; echo' '; echo ""; } while ($lista = $datos->fetch_object()); ?>

Nombre Frecuencia CorteMusic Modificar Borrar
".$lista->Nombre." ".$lista->Frecuencia." ".$lista->CorteMusic."

El código php es:
Código PHP:
<?php
 
/*Conexion a la bd*/
$mysqli = new mysqli("localhost""root""root");
$mysqli->select_db("zer");
$datos $mysqli->query("CALL mostrar_estaciones()");
?>
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Estaciones</title>
        <link href="css/Estilo.css" rel="stylesheet" type="text/css"/>
    </head>
    <body>
        <?
        
if ($lista $datos->fetch_object ()) {
            
?>
        <form id="formest" name="formest" method="post" action="procesaEstacion.php">
            <table width="459" border="0" align="center">
                <tr height="100"><td><b></b></td>
                    <td height="61" colspan="3"><b>Agregar Nueva Estacion  <a href="EstacionNueva.php?id=0"><img src="images/add.png" name="nuevaest" width="16" height="16"></a></b><b></b></td>
                    <td><b></b></td>
                </tr>
                <tr>
                    <td><b>Nombre   </b></td>
                    <td><b>Frecuencia   </b></td>
                    <td><b>CorteMusic</b></td>
                    <td><b>Modificar</b></td>
                    <td><b>Borrar</b></td>
                </tr>
                    <?
                    
do {
                        echo 
"<tr>";
                        echo 
"<td><b>".$lista->Nombre."</b></td>";
                        echo 
"<td><b>".$lista->Frecuencia."</b></td>";
                        echo 
"<td><b>".$lista->CorteMusic."</b></td>";
                        echo
'<td><a href="EstacionNueva.php?id='.$lista->idEstaciones'"><img src="images/edit.png" width="16" height="16"></a></td> ';
                        echo
'<td><a href="borrarEst.php?id=' .$lista->idEstaciones'"><img src="images/delete.png" width="16" height="16"></a></td> ';
                        echo 
"</tr>";
                    } while (
$lista $datos->fetch_object());
                    
?>
            </table>
        </form>
        <?
        
}else {
            
?>
        <form id="formest" name="formest" method="post" action="procesaEstacion.php">
            <table width="459" border="0" align="center">
                <tr height="100"><td><b></b></td>
                    <td height="61" colspan="3"><b>Agregar Nueva Estacion  <a href="EstacionNueva.php?id=0"><img src="images/add.png" name="nuevaest" width="16" height="16"></a></b><b></b></td>
                    <td><b></b></td>
                </tr>
            </table>
        </form>
        <?
        
}
        
?>
    </body>
</html>