Por que pasa esto?
Cual seria la solución?
les pongo el codigo para que me den una ayudadita
Código HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" <head> <style> .menulines{ border:1px solid white; } .menulines a{ text-decoration:none; color:black; } </style> <script language="JavaScript1.2"> /* Highlight menu effect script: By Dynamicdrive.com For full source, Terms of service, and 100s DTHML scripts Visit http://www.dynamicdrive.com */ function borderize(what,color){ what.style.borderColor=color } function borderize_on(e) { if (document.all) source3=event.srcElement else if (document.getElementById) source3=e.target if (source3.className=="menulines") { borderize(source3,"Blue") } else { while(source3.tagName!="TABLE") { source3=document.getElementById? source3.parentNode : source3.parentElement if (source3.className=="menulines") borderize(source3,"Blue") } } } function borderize_off(e){ if (document.all) source4=event.srcElement else if (document.getElementById) source4=e.target if (source4.className=="menulines") borderize(source4,"white") else{ while(source4.tagName!="TABLE"){ source4=document.getElementById? source4.parentNode : source4.parentElement if (source4.className=="menulines") borderize(source4,"white") } } } fCol='000000';//face colour. sCol='ff0000';//seconds colour. mCol='000000';//minutes colour. hCol='000000';//hours colour. H='....'; H=H.split(''); M='.....'; M=M.split(''); S='......'; S=S.split(''); Ypos=0; Xpos=0; Ybase=8; Xbase=8; dots=12; ns=(document.layers)?1:0; if (ns){ dgts='1 2 3 4 5 6 7 8 9 10 11 12'; dgts=dgts.split(' ') for (i=0; i < dots; i++){ document.write('<layer name=nsDigits'+i+' top=0 left=0 height=30 width=30><center><font face=Arial,Verdana size=1 color='+fCol+'>'+dgts[i]+'</font></center></layer>'); } for (i=0; i < M.length; i++){ document.write('<layer name=ny'+i+' top=0 left=0 bgcolor='+mCol+' clip="0,0,2,2"></layer>'); } for (i=0; i < H.length; i++){ document.write('<layer name=nz'+i+' top=0 left=0 bgcolor='+hCol+' clip="0,0,2,2"></layer>'); } for (i=0; i < S.length; i++){ document.write('<layer name=nx'+i+' top=0 left=0 bgcolor='+sCol+' clip="0,0,2,2"></layer>'); } } else{ document.write('<div style="position:absolute;top:0px;left:0px"><div style="position:relative">'); for (i=1; i < dots+1; i++){ document.write('<div id="ieDigits" style="position:absolute;top:0px;left:0px;width:30px;height:30px;font-family:Arial,Verdana;font-size:10px;color:'+fCol+';text-align:center;padding-top:10px">'+i+'</div>'); } document.write('</div></div>') document.write('<div style="position:absolute;top:0px;left:0px"><div style="position:relative">'); for (i=0; i < M.length; i++){ document.write('<div id=y style="position:absolute;width:2px;height:2px;font-size:2px;background:'+mCol+'"></div>'); } document.write('</div></div>') document.write('</div></div>') document.write('<div style="position:absolute;top:0px;left:0px"><div style="position:relative">'); for (i=0; i < H.length; i++){ document.write('<div id=z style="position:absolute;width:2px;height:2px;font-size:2px;background:'+hCol+'"></div>'); } document.write('</div></div>') document.write('<div style="position:absolute;top:0px;left:0px"><div style="position:relative">'); for (i=0; i < S.length; i++){ document.write('<div id=x style="position:absolute;width:2px;height:2px;font-size:2px;background:'+sCol+'"></div>'); } document.write('</div></div>') } function clock(){ time = new Date (); secs = time.getSeconds(); sec = -1.57 + Math.PI * secs/30; mins = time.getMinutes(); min = -1.57 + Math.PI * mins/30; hr = time.getHours(); hrs = -1.57 + Math.PI * hr/6 + Math.PI*parseInt(time.getMinutes())/360; if (ns){ Ypos=window.pageYOffset+window.innerHeight-60; Xpos=window.pageXOffset+window.innerWidth-80; } else{ Ypos=document.body.scrollTop+window.document.body.clientHeight-60; Xpos=document.body.scrollLeft+window.document.body.clientWidth-60; } if (ns){ for (i=0; i < dots; ++i){ document.layers["nsDigits"+i].top=Ypos-5+40*Math.sin(-0.49+dots+i/1.9); document.layers["nsDigits"+i].left=Xpos-15+40*Math.cos(-0.49+dots+i/1.9); } for (i=0; i < S.length; i++){ document.layers["nx"+i].top=Ypos+i*Ybase*Math.sin(sec); document.layers["nx"+i].left=Xpos+i*Xbase*Math.cos(sec); } for (i=0; i < M.length; i++){ document.layers["ny"+i].top=Ypos+i*Ybase*Math.sin(min); document.layers["ny"+i].left=Xpos+i*Xbase*Math.cos(min); } for (i=0; i < H.length; i++){ document.layers["nz"+i].top=Ypos+i*Ybase*Math.sin(hrs); document.layers["nz"+i].left=Xpos+i*Xbase*Math.cos(hrs); } } else{ for (i=0; i < dots; ++i){ ieDigits[i].style.pixelTop=Ypos-15+40*Math.sin(-0.49+dots+i/1.9); ieDigits[i].style.pixelLeft=Xpos-14+40*Math.cos(-0.49+dots+i/1.9); } for (i=0; i < S.length; i++){ x[i].style.pixelTop =Ypos+i*Ybase*Math.sin(sec); x[i].style.pixelLeft=Xpos+i*Xbase*Math.cos(sec); } for (i=0; i < M.length; i++){ y[i].style.pixelTop =Ypos+i*Ybase*Math.sin(min); y[i].style.pixelLeft=Xpos+i*Xbase*Math.cos(min); } for (i=0; i < H.length; i++){ z[i].style.pixelTop =Ypos+i*Ybase*Math.sin(hrs); z[i].style.pixelLeft=Xpos+i*Xbase*Math.cos(hrs); } } setTimeout('clock()',50); } if (document.layers || document.all) window.onload=clock; //--> </script> <?php //echo $_POST['Submit']; $conexion = mysql_connect ("localhost", "root", "RFV.ghj") or die ("No se puede conectar con el servidor"); // Seleccionar base de datos mysql_select_db ("titulacion") or die ("No se puede seleccionar la base de datos"); // Enviar consulta $instruccion = "INSERT INTO visitas (fecha_v) VALUES (CURDATE())"; $consulta = mysql_query ($instruccion, $conexion) or die ("Fallo en la consulta"); $instruccion = "SELECT count(*) con FROM visitas v;"; $consulta = mysql_query ($instruccion, $conexion) or die ("Fallo en la consulta"); $resultado = mysql_fetch_array ($consulta); $suma=$resultado['con']; $instruccion = "select count(*) ayer from visitas where fecha_v=CURDATE()"; $consulta = mysql_query ($instruccion, $conexion) or die ("Fallo en la consulta"); $resultado = mysql_fetch_array ($consulta); $hoy=$resultado['ayer']; $instruccion = "select count(*) ayer from visitas where fecha_v=CURDATE()-1"; $consulta = mysql_query ($instruccion, $conexion) or die ("Fallo en la consulta"); $resultado = mysql_fetch_array ($consulta); $ayer=$resultado['ayer']; //$instruccion = "update visitas set visitas='$suma'"; //$consulta = mysql_query ($instruccion, $conexion) // or die ("Fallo en la consulta"); ?> </head> <body> <p> </p> <p> </p> <table width="213" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCFFCC" onMouseover="borderize_on(event)" onMouseout="borderize_off(event)"> <tr><td width="100%" bgcolor="#00FF66"><div align="center"><font face="Arial" size="3"><b>Menú Principal</b></font></div></td> </tr> <tr> <td width="100%" class="menulines"><p align="center"><a href="Temario.htm" target="mainFrame">Fundamentos de Base de Datos </a></p> </td> </tr> <tr><td width="100%" class="menulines"><div align="center"><font face="Arial" size="2"><a href="http://www.tonachadas.com"> El portal de humor</a> </font></div></td></tr> <tr><td width="100%" class="menulines"><div align="center"><font face="Arial" size="2"><a href="http://www.superpotencia.tk"> El mundo del motor </a> </font></div></td></tr> <tr><td width="100%" class="menulines"><div align="center"><font face="Arial" size="2"><a href="http://www.tunuevoportal.com"> Un portal nuevo para ti </a></font></div></td></tr> <tr><td width="100%" class="menulines"><div align="center"><font face="Arial" size="2"><a href="http://www.mirefugio.tk"> Tu puedes entrar en el </a> </font></div></td></tr> <tr> <td width="100%" class="menulines"><a href="relog.html"><font face="Arial" size="2"></font></a></td> </tr> </table> <p> </p> <p>Total Visitas: <?php echo $suma; ?></p> <p>Total Visitas Hoy: <?php echo $hoy; ?></p> <p>Total Visitas Ayer: <?php echo $ayer; ?><br> </p> <table width="200" border="1" bordercolor="#FFFFFF" bgcolor="#FFFFFF"> <tr> <td height="27"> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> </tr> </table> <p><br> <br> </p> </body> </html>