Código PHP:
$colname_rs_bueno = "1";
if (isset($_GET['gal'])) {
$colname_rs_bueno = (get_magic_quotes_gpc()) ? $_GET['gal'] : addslashes($_GET['gal']);
}
mysql_select_db($database_boxertodo, $boxertodo);
$query_rs_bueno = sprintf("SELECT * FROM boxer_galeria_fotos WHERE id_galeria = %s ORDER BY fecha DESC", $colname_rs_bueno);
$rs_bueno = mysql_query($query_rs_bueno, $boxertodo) or die(mysql_error());
$row_rs_bueno = mysql_fetch_assoc($rs_bueno);
while ($row_rs_bueno = mysql_fetch_array($rs_bueno)) {
$iCurImageUnq = $row_rs_bueno["id"];
echo "iCurImageUnq: ".$iCurImageUnq."<br><br>";
}
sannoi