Ver Mensaje Individual
  #1 (permalink)  
Antiguo 15/01/2005, 13:40
Avatar de pekeña
pekeña
 
Fecha de Ingreso: enero-2005
Ubicación: CONCEPCION
Mensajes: 57
Antigüedad: 19 años, 3 meses
Puntos: 0
Exclamación Consultas En Php

QUIEN ME PUEDE AYUDAR CON MI CONSULTA CON ESTOS ERRORES:

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in c:\archivos de programa\apache group\apache\htdocs\consulta.php on line 25

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in c:\archivos de programa\apache group\apache\htdocs\consulta.php on line 27





<?php

include("consulta.php");
$link=mysql_connect("localhost","root");
mysql_select_db("mibasedatos",$link);


$sql="select num_d, cod_e from ITEM where cod_t='$cod_t && num_c='$num_C'";
$result=mysql_query($sql,$conexion);

if ($row=mysql_fetch_array($result)){
echo "<table border='1'>\n";

echo"<tr>\n";
echo"<td><b>NUM</b></td>\n";
echo"<td><b>ESTADO</b></td>\n";
echo"</tr>\n";



do
{
?>
<?php
echo "<td>".$row["num_d"]."</td>\n";
echo "<td>".$row["cod_e"]."</td>\n";
echo "</tr>\n";

}while ($row=mysql_fetch_array($result));


}else{
echo"¡La base de datos esta vacia!";

}
?>
__________________
Josi-Jo :adios: saludos