El codigo es el siguiente:
Código PHP:
<?
include("config.php");
$link=conectar_BD();
?>
<html>
<head>
<title>Compras Productos</title>
<LINK href="estilo.css" type=text/css rel=stylesheet>
<SCRIPT language=JavaScript src="javascript.js"></SCRIPT>
</head>
<body class="body">
<?
$result=mysql_query("SELECT * FROM $name_tb[productos]");
while ($row = mysql_fetch_array($result)) {
echo "
<table>
<tr>
<td class='textochico' valign='middle'>
<input name='cantidad' type='text' size='5' maxlength='5'>
</td>
<td class='textochico'>
<img src='/ult/fotos/$row[comprar]'>
</td>
<td class='textochico'>
$row[articulo]
</td>
<td class='textochico'>
$$row[p_12]
</td>
<td class='textochico'>
<img src='/ult/fotos/$row[ruta]'>
</td>
<td class='textochico'>
<img src='/ult/fotos/$row[foto]'>
</td>
<td class='textochico'>
<img src='/ult/fotos/$row[info]'>
</td>
</tr>
</table>
";
}
mysql_free_result($result);
mysql_close($link);
?>
</body>
</html>