Ver Mensaje Individual
  #2 (permalink)  
Antiguo 18/05/2013, 05:44
alberto_revilla
 
Fecha de Ingreso: mayo-2013
Mensajes: 3
Antigüedad: 10 años, 11 meses
Puntos: 0
Respuesta: mysql-php-css Web problem

Mas informacion:
He probado a quitar los archivos txt,de modo que evito que el fallo no venga al cargar los txt, pero sigue igual.los link no me redirigen al marco o los marcos no son visualizados correctamente:
esta es la pagina web a "semi-huevo", sin automatizar la creacion de divs
http://revilla.sytes.net/index4.php

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="mystyle3.css">
<title>Alberto Revilla Php Web</title>
<style type="text/css">

</style>
</head>

<body>


<div id="img1" align="left"> <img src="dividerart.jpg" alt="leftlogo" width="10%" height="100%" align="left"> </div>
<div id="img2" align="right"> <img src="dividerart2.jpg" alt="leftlogo" width="10%" height="100%" align="right"> </div>
<div id="title">
<table width="100%" height="100%" border="0">
<tr>
<td width="94%" height="100%" ><H1>Alberto Revilla Php Web</H1>
</td>
<td width="6%">
<img src="yo3gif.gif" width="50px" align="right"/>
</td>
</tr>
</table>
</div>
<div id="sections">
<?php
$a=NULL;
if($a=mysql_connect('localhost','root','Pas.Root') )
{
//echo "Ok";
mysql_select_db("index4",$a);
$resultado = mysql_query("SELECT * FROM linkspanish");
if (!$resultado) {
echo 'No se pudo ejecutar la consulta: ' . mysql_error();
exit;}
else{
if(mysql_num_rows($resultado)!=0){
$cont=mysql_num_rows($resultado);
//echo $cont;
$indice=0;
echo '<table width="100%" border="0" > <tr>';
while ($cont){
//echo $indice;
echo '<td background="./images/tableback.jpg"> ';
//echo '<td background="./images/dividerart.jpg"> ';
$string= mysql_fetch_array($resultado);
echo '<a href="'.$string[1].'">'.$string[0].'</a>';
echo '</td>';
$indice++;
$cont--;
}
echo '</tr>';
echo '</table>';
}
}
mysql_close($a);
}
else{ echo "no_conected";}
?>
</div>
<div id="contenido">
<div id="marco1">
<p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p>

<?php
$file = fopen("Contenido1.txt", "r") or exit("Unable to open file!");
while(!feof($file)) { echo fgets($file); } fclose($file);
?>

</div>
<div id="marco2">
<p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p>

<?php
$file = fopen("Contenido2.txt", "r") or exit("Unable to open file!");
while(!feof($file)) { echo fgets($file); } fclose($file);
?>

</div>
<div id="marco3">
<p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p>

<?php
$file = fopen("Contenido3.txt", "r") or exit("Unable to open file!");
while(!feof($file)) { echo fgets($file); } fclose($file);
?>

</div>
<div id="marco4">
<p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p>

<?php
$file = fopen("Contenido4.txt", "r") or exit("Unable to open file!");
while(!feof($file)) { echo fgets($file); } fclose($file);
?>
</div>
<div id="marco5">
<p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p>

<?php
$file = fopen("Contenido5.txt", "r") or exit("Unable to open file!");
while(!feof($file)) { echo fgets($file); } fclose($file);
?>
</div>
</div>
<div id="cola">
<HR>
<IMG SRC="apache_pb.gif" height="25px" ALT="">
<IMG SRC="phplogo-highres.png" height="25px" ALT="">
<IMG SRC="logo-mysql.png" height="25px" ALT="">
</div>
</body>
</html>


y este su css

hr {color: #0000FF; width:inherit;}
p {margin-left:20px;}
body {background-image:url("back01.bmp");}
html { font: bold 14px arial,helvetica,sans-serif; }
h1 { text-align: left; color:#000000; }
h2 { text-align: center; color: #777; }
ul { list-style:none; color: #888; }
ul li a { color: #888; text-decoration:none; font-weight: bold; }
ul li a:hover { color: #f00; }
p { color: #456; }

a{color:#000000;}
a:hover { color: #f00; }

/* Capas del ejemplo */

div#img1 {
position: absolute;
left: 0px; top: 0px;
width:50%; height:100%; /* height:932px;*/
z-index:1; }
div#img2 {
position: absolute;
right: 0px; top: 0px;
width:50%; height:100%;
z-index:1; }
div#title {
position: absolute;
height: 70px;
width:80%;
z-index:3;
font: bold 14px arial,helvetica,sans-serif;
left: 10%;
top: 2px;
}/*height: 10%;width:956px;*/

div#sections {
background-color:#60A6FB;
position:absolute;
top: 73px;/*top: 73px;*/
left: 10%;
height: 25px;
width:80%;
z-index:3;
}/*right:10px; left: 119px; width:80%; height: 20%;*/
div#contenido {
position:absolute;
left:10%; top:0px; /* top:29px;*/
width:80%; height:785px; /* height:778px;*/
z-index:2;
overflow:hidden;}
div#cola {
position:fixed;
left: 0%; bottom:5px;
width:100%; height:40px;
z-index:4;}
div#marco1, div#marco2, div#marco3, div#marco4, div#marco5{
position:relative;
height:100%; width:100%;
overflow:hidden; z-index:3;}



Agradezco hasta qu solo lo miren,jeje
Si quieren mas info solo pregunten