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

CORREGIDO!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Pero aun sigo con errores XP ahora tengo estos errores:

Warning: mysql_query() expects parameter 1 to be string, resource given in C:\xampp2\htdocs\projectoz\gestion\cliente\reporte .php on line 22

Warning: mysql_fetch_array() expects parameter 1 to be resource, null given in C:\xampp2\htdocs\projectoz\gestion\cliente\reporte .php on line 30
Nombres Apellidos

este es mi nuevo codigo:

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($conexion"SELECT * FROM clientes");

echo 
"<table border='1' align='center'>";
echo 
"<tr bgcolor='#CCCCCC'>";
echo 
"<td><b>Nombres</b></td>";
echo 
"<td><b>Apellidos</b></td>";


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

}

echo 
"</table>";

mysql_close($conexion);
?>

</center>
</div>

</body>
</html>
sigo sin hayarle T_T
__________________
No Sign, No responsability ;D