Warning: Cannot modify header information - headers already sent by (output started at /hosting/index.php:9) in /hosting/index.php on line 117
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /hosting/index.php on line 118
Warning: mysql_query() [function.mysql-query]: Access denied for user 'web.com'@'localhost' (using password: NO) in /hosting//index.php on line 123
Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /hosting/alicedarko/index.php on line 123
Access denied for user 'web.com'@'localhost' (using password: NO)
y este es el script
Código PHP:
<?php
if(isset($_COOKIE['visited233'])){
include('conexion122e122.php');
$uno=mysql_query("SELECT veces FROM visitas WHERE nick='zaska'") or(mysql_error());
$num=mysql_fetch_array($uno);
echo '$num visitas este mes -';}
else{
setcookie ( "visited233" , visitadarko , time ()+ 86900 ,'/','.pagina.com');
while($row=mysql_fetch_array($uno)){
$veces= $row['veces'];}
$veces = $veces + 1;
$consulta = "UPDATE visitas SET veces = veces + 1 WHERE nick='zaska'";
mysql_query($consulta) or die(mysql_error());
echo ''.$num.' visitas este mes';}
?>