Ver Mensaje Individual
  #1 (permalink)  
Antiguo 23/02/2012, 07:21
nagur
 
Fecha de Ingreso: febrero-2012
Mensajes: 2
Antigüedad: 12 años, 2 meses
Puntos: 0
como actualizar esto sin problemas varios...

Hola buenas Tardes,

Soy nuevo en le foro, tengo un problemilla y haber si vosotros podeis solucionarlo...y asi facilitar la vida a muchos como yo que se tienen que pelear todos los días con cuestiones de estas...

tengo esto...

<?php
include('API.php');
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>ARAWAK VIAJES - Mi Cuenta</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<?php
include("include/header.php");

$query = "SELECT * FROM excursiones where CodigoExcursion= '{$_GET['id']}' AND FechaExcursion = '{$_GET['fecha']}'";
$datosE = obtenerQuery($query);
$mensaje = utf8_decode($_GET['mensaje']);
echo <<<FORM
<br>
<table style="width:100%;">
<tr>
<td colspan="6"><img src="img/guias.png" style="width: 700px;"></td>
</tr>
<tr style="text-align: left;">
<td><img src="img/mi_cuenta.png"></td>
<td width="100" colspan="2" align="right"><a href="javascript:history.go(-1)"><img src="img/atras.png" alt="" width="45" height="45"></a></td>
</tr>
<tr style="text-align: left;">
<td>
<form name="formu2" method="GET" action="comprobar.php">
<table width="100%">
<tr style="text-align: left;">
<td colspan="2">
<p class="cuerpo">
<img src="img/vinieta.gif">Para la asistencia a cualquier excursión o viaje es necesario que hagas tu reserva con anterioridad.
<br><br><img src="img/vinieta.gif">Cualquier inscripción se entiende como contratación en firme, no existiendo en ningún caso el concepto de reserva sin compromiso. Para la asistencia a cualquier excursión o viaje es necesario haber reservado plaza previamente.
</p>
</td>
</tr>
<tr>
<td colspan="2" class="TituloExc">$mensaje</td>
</tr>
<tr><td class="menu" style="text-align: left; width: 100px;">Usuario (DNI)</td><td class="menu" style="text-align: left; width: 500px;"><input type="text" name="usuario">(000000000B)</td></tr>
<tr><td class="menu" style="text-align: left;">Contraseña</td><td><input type="password" name="password"></td></tr>
<tr><td height="20" colspan="2" class="menu" style="text-align: left;"><input type="checkbox" name="acepto" value="SI">
He leido y acepto las <a class="enlaces" href="condiciones_generales.pdf" target="_blank">condiciones generales</a> </td>
</tr>
<input type="hidden" name="id" value="{$datosE['CodigoExcursion']}">
<input type="hidden" name="FechaExcursion" value="{$datosE['FechaExcursion']}">
<input type="hidden" name="Alojamiento" value="{$datosE['Alojamiento']}">
<tr><td colspan="2" align="center"><input type="submit" value="Continuar reserva" class="euro" ></td></tr>
<tr><td height="20"></td></tr>
<tr><td colspan="2" align="justify" class="cuerpo">Si es usuario registrado y olvido su contraseña&nbsp;&nbsp;&nbsp;&nbsp <input class="euro" type="button" value="Recuperar" onClick="javascript:ventanaSecundaria('contrasena. asp')"></td></tr>
<tr><td height="20"></td></tr>
<tr><td colspan="2" align="justify" class="cuerpo">Si no es usuario registrado puede darse de alta desde aqui &nbsp;&nbsp;&nbsp;&nbsp <input class="euro" type="button" value="Nueva Alta" onClick="javascript:ventanaSecundaria2('nuevo_clie nte.asp')"></td></tr>
</table>
</form>
</td>
</tr>
</table>
FORM;
include("include/footer.php");
?>


y me gustaria ajustar esto como el de arriba...pero no me muestra los datos de la base de datos...

<?php
include('API.php');
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>ARAWAK VIAJES - Mi Cuenta</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<?php
$idconsulta_admin=mysql_query("select * from clientes where NIF='".$_COOKIE["namecookieprimera"]."' and Clave='".$_COOKIE["passwordcookieprimera"]."'",$link);
$row_admin = mysql_fetch_array($idconsulta_admin);
include("include/header.php");
$mensaje = utf8_decode($_GET['mensaje']);
?>
<body>
<br>
<table style="width:100%;">
<tr>
<td colspan="6"><img src="img/guias.png" style="width: 700px;"></td>
</tr>
<tr style="text-align: left;">
<td><img src="img/mi_cuenta.png"></td>
<td width="100" colspan="2" align="right"><a href="javascript:history.go(-1)"><img src="img/atras.png" alt="" width="45" height="45"></a></td>
</tr>

<tr style="text-align:left;">
<table width="100%" style="text-align:left;">
<tr>
<td colspan="2" align="right" height="40"><input type="button" value="Ver datos de Excursiones" onClick="javascript:window.location.href='ver_excu rsiones.php?id=<?php echo $row_admin["CodigoCliente"]?>'"></td>
</tr><tr>
<td width="159" class="euro"><strong>Titular</strong></td>
<td width="599" class="cuerpo"><?php echo $datosE["NombreCliente"]?>&nbsp;&nbsp;
<?php echo $datosE["ApellidosCliente"]?></td>
</tr>
<tr>
<td class="euro"><strong>NIF</strong></td>
<td class="cuerpo"><?php echo $datosE["NIF"]?>&nbsp;&nbsp; </td>
</tr>
<tr>
<td class="euro"><strong>Telefono principal</strong></td>
<td class="cuerpo"><?php echo $datosE["TfnoIndice"]?>&nbsp;&nbsp; </td>
</tr>
<tr>
<td class="euro"><strong>Direccion</strong></td>
<td class="cuerpo"<?php echo $datosE["Direccion"]?>>&nbsp;&nbsp; </td>
</tr>
<tr>
<td class="euro"><strong>Localidad</strong></td>
<td class="cuerpo"><?php echo $datosE["Localidad"]?>&nbsp;&nbsp; </td>
</tr>
<tr>
<td class="euro"><strong>CP</strong></td>
<td class="cuerpo"><?php echo $datosE["CodigoPostal"]?>&nbsp;&nbsp;
</td>
</tr>
<tr>
<td class="euro"><strong>Provincia</strong></td>
<td class="cuerpo"><?php echo $datosE["Provincia"]?>&nbsp;&nbsp; </td>
</tr>
<tr>
<td class="euro"><strong>Fecha Nacimiento</strong></td>
<td class="cuerpo"><?php echo $datosE["FechaNacimiento"]?>&nbsp;&nbsp;
</td>
</tr>
<tr>
<td class="euro"><strong>Sexo</strong></td>
<td class="cuerpo"><?php echo $datosE["Sexo"]?>&nbsp;&nbsp; </td>
</tr>
<tr>
<td class="euro"><strong>Mail</strong></td>
<td class="cuerpo"><?php echo $datosE["Mail"]?>&nbsp;&nbsp; </td>
</tr>
<tr>
<td width="159" class="euro" ><strong>Socio: </strong></td>
<td width="599" class="cuerpo">
<?php if ($datosE["Credito"]="S") {
$socio="Si";
}
else
{$socio="No";
}
?>
<?php echo $socio?>
</td>
</tr>
<tr>
<td colspan="2" align="" class="cuerpo" ></td>
</tr>
<input type="hidden" name="id" value="<?php echo $id?>">
<input type="hidden" name="client" value="<?php echo $client?>">
<tr>
<td colspan="2" align="left" height="40"><input name="submit" type="button" value="Modificar Datos" onClick='javascript:ventanaSecundaria2("modificawe b.php?CodigoCliente=<?php echo $datosE["CodigoCliente"]?>")'></td>
</tr></form>
<tr>
<td height="20">
<input type="button" value="Seleccionar excursion" onClick="javascript:window.location.href='seleccio n_viaje.php'"></td></tr>
</table>
</td>
</tr>
</table>
</table>
<?
include("include/footer.php");
?>
</html>


para que se pueda validar correctamente y me muestre los datos...que no me los muestra...

alguien me puede ayudar...se lo agradeceria....

ante todo gracias!! un saludo!!