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
![Neurótico](http://static.forosdelweb.com/fdwtheme/images/smilies/scared.png)
<?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!";
}
?>