Cita:
Iniciado por dplweb
Hola
a ver si entendi..
¿La idea es que no aparezca ese mensaje de espera?
Según como yo lo veo habria que poner un header() en vez de usar javascript
Al parecer sacaste el código de otro lugar o me equivoco?
Código PHP:
$getlink = mysql_query("SELECT * FROM links WHERE id='".$id."'");
while ($row = mysql_fetch_array($getlink)) {
header("Location: ".$row['link']);
$getvisitas = mysql_fetch_array(mysql_query("SELECT * FROM links WHERE id='".$id."'"));
$suma = $getvisitas['hits']+1;
mysql_query("UPDATE links SET hits='".$suma."' WHERE id='".$id."'");
}
Espero que sea eso, saludos y suerte
Me tira este error :
Warning: Cannot modify header information - headers already sent by (output started at /home/concerta/public_html/index.php:23) in /home/concerta/public_html/links.php on line 70