Salve ragazzi,
Ho creato una tabella in html ma non mi visualizza i bordi perchè?
Il codice eseguito singolarmente (FUNZIONANTE) è questo:
Codice:
<html>
<body>
<center><table border="1" cellspacing="2" cellpadding="8">
<tr>
<th><font face="Arial, Helvetica, sans-serif">ID</font></th>
<th><font face="Arial, Helvetica, sans-serif">Nome</font></th>
<th><font face="Arial, Helvetica, sans-serif">username</font></th>
<th><font face="Arial, Helvetica, sans-serif">punti</font></th>
</tr>
<?php
$i=0;
$id = 0;
while ($i < $num) {
$id++;
$nome=mysql_result($risultati,$i,"nome");
$username=mysql_result($risultati,$i,"imUname");
$punti=mysql_result($risultati,$i,"punti");
?>
<tr>
<td><font face="Arial, Helvetica, sans-serif"><?php echo $id;?></font></td>
<td><font face="Arial, Helvetica, sans-serif"><?php echo $nome;?></font></td>
<td><font face="Arial, Helvetica, sans-serif"><?php echo $username;?></font></td>
<td><font face="Arial, Helvetica, sans-serif"><?php echo $punti;?></font></td>
</tr>
<?php
$i++;
}
?>
</table></center>
</body>
</html>
Come potete vedere, eseguito singolarmente i bordi compaiono! (border: 1px)
ma avendo inserito questa tabella in una pagina php con altri codice (menu che fa riferimento a css ecc) non mi compare!!! perchè?? ecco il codice completo della pagina, perpiacere aiutatemiiiiii
(La parte che mi interessa l'ho evidenziata in rosso , ovviamente nn avendo tutti i file vi compariranno un bel pò di errori, ma cmq potrete vedere lo stesso che nn compaiono i bordi )
Codice:
<?php
include("config.php");
session_start();
?>
<!DOCTYPE html><!-- HTML5 -->
<html lang="it" dir="ltr">
<head>
<meta charset="utf-8" />
<!--[if IE]><meta http-equiv="ImageToolbar" content="False" /><![endif]-->
<meta name="author" content="Pierpaolo" />
<link rel="stylesheet" type="text/css" href="style/reset.css" media="screen,print" />
<link rel="stylesheet" type="text/css" href="style/print.css" media="print" />
<link rel="stylesheet" type="text/css" href="style/style.css" media="screen,print" />
<link rel="stylesheet" type="text/css" href="style/template.css" media="screen" />
<link rel="stylesheet" type="text/css" href="style/menu.css" media="screen" />
<!--[if lte IE 7]><link rel="stylesheet" type="text/css" href="style/ie.css" media="screen" /><![endif]-->
<script type="text/javascript" src="res/swfobject.js"></script>
<script type="text/javascript" src="res/jquery.js?1939"></script>
<script type="text/javascript" src="res/x5engine.js?1939"></script>
<script type="text/javascript" src="res/x5cartengine.js?1939"></script>
<script type="text/javascript" src="res/l10n.js?1939_634892226885771829"></script>
<script type="text/javascript" src="res/x5settings.js?1939_634892226885771829"></script>
<link rel="icon" href="favicon.ico" type="image/vnd.microsoft.icon" />
<link rel="apple-touch-icon" href="http://www.jackp8cento.altervista.org/res/logo.png" />
<title>Classifica - jackp8cento</title>
<link rel="stylesheet" type="text/css" href="pcss/classifica.css" media="screen" />
</head>
<body>
<div id="imPage">
<div id="imHeader">
<h1 class="imHidden">Classifica - jackp8cento</h1>
<div style="position: absolute; top: 68px; left: 16px; width: 730px; height: 95px; overflow: hidden;"><script type="text/javascript">
/* <![CDATA[ */
document.write('<s'+'cript type="text/javascript" src="http://ad.altervista.org/js.ad/size=728X90/r='+new Date().getTime()+'"><\/s'+'cript>');
/* ]]> */
</script></div>
</div>
<a class="imHidden" href="#imGoToCont" title="Salta il menu di navigazione">Vai ai contenuti</a>
<a id="imGoToMenu"></a><p class="imHidden">Menu principale:</p>
<div id="imMnMn" class="auto">
<ul class="auto">
<li id="imMnMnNode0" class="imMnMnFirst">
<a href="index.php">
<span class="imMnMnFirstBg">
<span class="imMnMnTxt"><span class="imMnMnImg"></span>Home Page</span>
</span>
</a>
</li>
<li id="imMnMnNode3" class="imMnMnMiddle">
<a href="registrati.php">
<span class="imMnMnFirstBg">
<span class="imMnMnTxt"><span class="imMnMnImg"></span>Registrati</span>
</span>
</a>
</li>
<li id="imMnMnNode5" class="imMnMnMiddle imMnMnCurrent">
<a href="classifica.php">
<span class="imMnMnFirstBg">
<span class="imMnMnTxt"><span class="imMnMnImg"></span>Classifica</span>
</span>
</a>
</li>
<li id="imMnMnNode6" class="imMnMnMiddle">
<a href="risorse-utili.php">
<span class="imMnMnFirstBg">
<span class="imMnMnTxt"><span class="imMnMnImg"></span>Risorse Utili</span>
</span>
</a>
</li>
<li id="imMnMnNode7" class="imMnMnLast">
<a href="info.html">
<span class="imMnMnFirstBg">
<span class="imMnMnTxt"><span class="imMnMnImg"></span>Info</span>
</span>
</a>
</li>
</ul><script type="text/javascript">x5engine.imQueue.push_init("x5engine.utils.imPreloadImages(['menu/index_h.png','menu/registrati_h.png','menu/classifica_h.png','menu/risorse-utili_h.png','menu/info_h.png','res/imLoad.gif','res/imClose.png'])",false);</script>
</table></center>
</div>
<div id="imContentGraphics"></div>
<div id="imContent">
<a id="imGoToCont"></a>
<h2 id="imPgTitle">Classifica</h2>
<div style="width: 1040px; float: left;">
<div id="imCell_4" class="imGrid[0, 0]"><div id="imCellStyleGraphics_4"></div><div id="imCellStyle_4"><div id="imTableObject_4">
</div></div></div>
</div>
<div style="width: 1040px; float: left;">
<div id="imCell_5" class="imGrid[1, 1]"><div id="imCellStyleGraphics_5"></div><div id="imCellStyle_5"><div class="imHTMLObject" style="height: 450px; overflow: hidden; text-align: center;">
<?php
$contenuti = mysql_query("SELECT count(*) AS id
FROM datiutenti
WHERE punti >= (
SELECT punti
FROM datiutenti
WHERE imUname = '" . $_SESSION['imUname'] . "'
)");
$leggo = mysql_fetch_assoc($contenuti);
$id = $leggo['id'];
$risultati=mysql_query($query);
$num=mysql_numrows($risultati);
mysql_close();
?>
<center> <table border="1px">
<tr style="height: 20px; *height: 11px;">
<th><font face="Arial, Helvetica, sans-serif">ID</font></th>
<th><font face="Arial, Helvetica, sans-serif">Nome</font></th>
<th><font face="Arial, Helvetica, sans-serif">Username</font></th>
<th><font face="Arial, Helvetica, sans-serif">Punti</font></th>
</tr>
<?php
$i=0;
$id = 0;
while ($i < $num) {
$id++;
$nome=mysql_result($risultati,$i,"nome");
$username=mysql_result($risultati,$i,"imUname");
$punti=mysql_result($risultati,$i,"punti");
?>
<tr>
<td class="imW344 imVt"><font face="Arial, Helvetica, sans-serif"><?php echo $id;?></font></td>
<td class="imW344 imVt"><font face="Arial, Helvetica, sans-serif"><?php echo $nome;?></font></td>
<td class="imW344 imVt"><font face="Arial, Helvetica, sans-serif"><?php echo $username;?></font></td>
<td class="imW344 imVt"><font face="Arial, Helvetica, sans-serif"><?php echo $punti;?></font></td>
</tr>
<?php
$i++;
}
?>
</table></center>
<script type="text/javascript"> var av_gbook_lang = 'it'; </script>
<script type="text/javascript" src="http://tl.altervista.org/js/guestbook.js"></script></div></div></div>
</div>
<div id="imBtMn"><a href="index.php">Home Page</a> | <a href="registrati.php">Registrati</a> | <a href="classifica.php">Classifica</a> | <a href="risorse-utili.php">Risorse Utili</a> | <a href="info.html">Info</a> | <a href="imsitemap.html">Mappa generale del sito</a></div>
<div class="imClear"></div>
</div>
</div>
<div id="imFooterBg">
<div id="imFooter">
</div>
</div>
<span class="imHidden"><a href="#imGoToCont" title="Rileggi i contenuti della pagina">Torna ai contenuti</a> | <a href="#imGoToMenu" title="Naviga ancora nella pagina">Torna al menu</a></span>
</body>
</html>