Foros del Web » Creando para Internet » Diseño web »

Solo el codigo

Estas en el tema de Solo el codigo en el foro de Diseño web en Foros del Web. Verán, hace tiempo escribí el mismo problema, sin respuestas, mi problema es el siguiente: Desde localhost, me funciona correctamente, pero cuando subo la pag 1.php ...
  #1 (permalink)  
Antiguo 16/08/2008, 10:00
 
Fecha de Ingreso: enero-2008
Ubicación: Valencia
Mensajes: 65
Antigüedad: 16 años, 3 meses
Puntos: 2
Solo el codigo

Verán, hace tiempo escribí el mismo problema, sin respuestas, mi problema es el siguiente:

Desde localhost, me funciona correctamente, pero cuando subo la pag 1.php se ve el código, en vez de ver la tabla.

Es una tabla de la base de datos realizada con wamp, http://webs.ono.com/merche300/1.php y este es el código.

<?php require_once('Connections/Jugadores.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;

$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}

mysql_select_db($database_Jugadores, $Jugadores);
$query_Jugadores = "SELECT * FROM jugadores";
$Jugadores = mysql_query($query_Jugadores, $Jugadores) or die(mysql_error());
$row_Jugadores = mysql_fetch_assoc($Jugadores);
$totalRows_Jugadores = mysql_num_rows($Jugadores);
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento sin t&iacute;tulo</title>
</head>

<body>
<form id="form1" name="form1" method="post" action="">
<table border="1">
<tr>
<td>Dorsal</td>
<td>Nombre</td>
<td>Apellidos</td>
<td>Enviado</td>
</tr>
<?php do { ?>
<tr>
<td><?php echo $row_Jugadores['Dorsal']; ?></td>
<td><?php echo $row_Jugadores['Nombre']; ?></td>
<td><?php echo $row_Jugadores['Apellidos']; ?></td>
<td><?php echo $row_Jugadores['Enviado']; ?></td>
</tr>
<?php } while ($row_Jugadores = mysql_fetch_assoc($Jugadores)); ?>
</table>
<p>&nbsp; </p>
</form>
</body>
</html>
<?php
mysql_free_result($Jugadores);
?>

¿A parte de la pagina he de subir algo mas? ¿Como? Ahora lo hago directamente desde el mismo Dreamweaver es el CS3.
  #2 (permalink)  
Antiguo 16/08/2008, 10:25
Avatar de Raulmmmm  
Fecha de Ingreso: marzo-2007
Ubicación: En otro lugar que tú
Mensajes: 1.549
Antigüedad: 17 años
Puntos: 36
Respuesta: Solo el codigo

Creo que es porque ONO no acepta páginas en PHP...
  #3 (permalink)  
Antiguo 16/08/2008, 13:41
 
Fecha de Ingreso: enero-2008
Ubicación: Valencia
Mensajes: 65
Antigüedad: 16 años, 3 meses
Puntos: 2
Respuesta: Solo el codigo

Gracias Raulmmmm
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 16:21.