Sigue sin funcionar...la leche. Tendrá que ver algo que yo llame al fichero .php desde otro (hago un include)? Os pongo el código del fichero que incluyo:
Código PHP:
<?php
$activeaucs= mysql_query("SELECT nomsubasta,proveedor,id_usuario,id_empresa,DATE_FORMAT(f_creac,'%d/%m/%Y - %H:%i:%s') AS f_creac,DATE_FORMAT(f_cierre,'%d/%m/%Y') AS f_cierre,progreso,hora_cierre,notas FROM subastas where progreso=1 or progreso=0");
//$subastasactivas = mysql_query("SELECT * FROM subastas where progreso=1 or progreso=0");
$numero = mysql_num_rows($activeaucs);
if ($numero != 0) {
echo '<table border=0 cellspacing="1" cellpadding="2">
<tr>
<th>Título</th>
<th>Proveedor</th>
<th>ID de usuario</th>
<th>ID de empresa</th>
<th>Fecha y hora de apertura</th>
<th>Fecha de cierre</th>
<th>Hora de cierre</th>
<th>Estado</th>
<th>Notas</th>
</tr><tr>';
while ($usuario = mysql_fetch_assoc($activeaucs)) {
echo '<td>'.$usuario['nomsubasta'].'</td>
<td>'.$usuario['proveedor'].'</td>
<td>'.$usuario['id_usuario'].'</td>
<td>'.$usuario['id_empresa'].'</td>
<td>'.$usuario['f_creac'].'</td>
<td>'.$usuario['f_cierre'].'</td>
<td>'.$usuario['hora_cierre'].'</td>';
if ($usuario['progreso'] == 0) {
echo'<td>En proceso...</td>';
}elseif ($usuario['progreso'] == 1){
echo'<td>Activa</td>';
}
$i = 1; // Contador
echo '<td>
<div id="mostrarDiv"><a href="javascript:mostrardiv(\'' . $i . '\');">Mostrar Div</a></div>
<div id="flotante' . $i . '" style="display:none;"> '.$usuario['notas'].' <br><a href="javascript:cerrar(\'' . $i . '\');">Cerrar</a></div>
</td>';
$i++;
echo '</tr>';
}
echo '</table>';
}
?>
¡Me tiene loco!