lo q no ser ver es q si solo hay un campo en la tabla no me muestra ninguno.. en cambio si hay dos me muestra solo uno... y asi consecutivamente. siempre hay un campo q no me muestra...
Si me podeis ayudar a encontrar el fallo...
![Stress](http://static.forosdelweb.com/fdwtheme/images/smilies/stress.png)
Gracias de antemano...
![Adios](http://static.forosdelweb.com/fdwtheme/images/smilies/adios.gif)
Código PHP:
<?
$str_articles = "SELECT codi_article,nom_article
FROM articles ORDER BY codi_article ASC";
$qry_articles = mysql_query($str_articles);
$rc_articles = mysql_num_rows($qry_articles);
?>
Código HTML:
<script language="JavaScript"> function confirma(ide){ if (confirm("Estas segur que vols Eliminar la tenda?")){ document.location.href = "index.php?fuseaction=delete&codi_tenda="+ide; } } function openWin( windowURL, windowName, windowFeatures ) { return window.open( windowURL, windowName, windowFeatures ) ; } </script> <html> <head> <link href="../../../../Style/Style.css" rel="stylesheet" type="text/css"> <title>Afegir Articles</title> </head> <body class="fondo"> <table width="75%"align="center" cellspacing=0 cellpadding=0 bgcolor="#CCCCCC" border=0> <tr> <td height="10px" width="10px"></td> <td height="10px" align="right"> <p align="right"><a href="javascript:window.close()"><img src="../../../../img/sortir.gif" width="91" height="25" border="0"></a></p> </td> <td height="10px" width="10px"></td> </tr> <tr> <td height="10px" width="10px"></td> <td align="center"><font size="3"><strong>Articles</strong></font><p></p> <table width="100%" cellpadding="3" cellspacing="0" class="list"> <tr> <td align="left" class="listheader">Codi Article</td> <td align="left" class="listheader" colspan="2">Article</td> </tr> <? if ($rc_articles == 0) echo "<tr><td colspan=3 class=listitem>No hay resultats. </td></tr>"; for($cr_articles=0; $row_articles=mysql_fetch_array($qry_articles); $cr_articles++){ echo "<tr>"; echo "<td align='left' width=12% class=listitem>" .$row_articles[codi_article]. "</td>"; echo "<td align='left' width=50% class=listitem>" .$row_articles[nom_article]."</td>"; ?> <td align=center width=5% class=listitem><a href="index.php?fuseaction=insert &codi_article= <? echo($row_articles[codi_article]) ?>&codi_tenda= <? echo($codi_tenda); ?> "><img class=imatge src=../../../../img/nou1.gif border=0 alt=Insertar></a></td> <? echo "</tr>"; } ?> </table> </td> <td height="10px" width="10px"></td> </tr> <tr> <td width=100 colspan="3" height="15px" align="center"></td> </tr> </table> </body> </html>