Ver Mensaje Individual
  #7 (permalink)  
Antiguo 30/06/2014, 10:21
Avatar de adelazeroth
adelazeroth
 
Fecha de Ingreso: junio-2014
Mensajes: 31
Antigüedad: 10 años, 8 meses
Puntos: 1
Respuesta: Generar consulta (yo se que ya muchos lo preguntaron)

Sorry me ausente mucho tiempo. Pero finalmente pude hechar a andar mi consulta, les comparto mi codigo final ^^. Gracias por sus respuestas, consejos y apoyo.
Código PHP:
<html>
<head>

<title>Proyecto Z</title>
<link rel="stylesheet" href="../../back.css" type="text/css">

</head>

<body>

<div class="trans"></div>

<div class="arriba2"><center>
<CENTER></BR></BR><h1><FONT COLOR="000000">Editor de Clientes</FONT></h1>


<?php
include '../../access.php';
         
$result mysql_query"SELECT * FROM clientes",$conexion);

echo 
"<table border='1' align='center'>";
echo 
"<tr bgcolor='#CCCCCC'>";
echo 
"<td><b>ID de Cliente</b></td>";
echo 
"<td><b>Codigo de cliente</b></td>";
echo 
"<td><b>Nombre de Cliente</b></td>";


while (
$row mysql_fetch_array($result)){
    echo 
"<tr>";
    echo 
"<td>".$row["ClienteID"]."</td>";
    echo 
"<td>".$row["CodigoID"]."</td>";
    echo 
"<td>".$row["NombreCliente"]."</td>";
    echo 
"</tr>";

}

echo 
"</table>";

mysql_close($conexion);
?>

</center>
</div>

</body>
</html>
Saludos
__________________
No Sign, No responsability ;D