Probleme de position PHP
Sasukeman
Messages postés
58
Date d'inscription
Statut
Membre
Dernière intervention
-
Sasukeman Messages postés 58 Date d'inscription Statut Membre Dernière intervention -
Sasukeman Messages postés 58 Date d'inscription Statut Membre Dernière intervention -
Bonjour,
je voudrais sa voir comme regler ce probleme http://www.nolimitanimes.com/site/anime.php
c'est trop decaler sur la droite donc voici mon code :
<?PHP
include "../site/haut.php";
print(' <table class="title_corps" width="778" height="78">
<td width="690" height="63" align="center" valign="middle"><img src="../site/images/stream.png">
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="777" height="7" align="center" >
<br/>
<br />
<div id="corps" align="justify" style="margin-left: 1cm; margin-right: 1cm; ">
');
mysql_connect("localhost", "$$$$$", "$$$$$$");
mysql_select_db("$$$$$$$$$$");
if (empty($_GET['id'])){
$select = mysql_query("SELECT * FROM streaming ORDER BY titre");
$limi_1 = 0;
while($resultat = mysql_fetch_array($select))
{
if ($limi_1 == 3){print '<br>';}
print '<table style="margin: 0pt; padding: 0pt 0pt 0px; background-image: url(../site/images/stream_animbrd.gif); background-repeat: no-repeat; background-position:bottom;" border="0" width="206">
<tbody><tr><td style="margin-bottom:auto; margin: 0pt; padding: 0pt 0pt 0pt 20px; white-space: nowrap;" valign="middle" width="216"><a href="anime.php?id='.$resultat['id'].'" style="text-decoration : none"><font color="#000066"><b>'.$resultat['titre'].'</b></font></a></td></tr><tr><td style="margin: 0pt; padding: 0pt 0pt 12px 2px;" align="left" valign="top" width="206"><a href="anime.php?id='.$resultat['id'].'"><img src='.$resultat['image'].' border="0" style="margin-left: 9px;" title="'.$resultat['titre'].'"/></a></td></tr>
</tbody></table><br></td>
';
$limi_1 += 1;
}
}
else{
$id = $_GET['id'];
$conect = mysql_query("SELECT * FROM streaming WHERE id='$id'");
while($donnees = mysql_fetch_array($conect))
{
print('
<div style="text-align: auto; margin-right:1cm">
<center><h2>'.$donnees['titre'].'</h2>
<img src="'.$donnees['image_2'].'" border="0"/></a><br><p> </p>
'.$donnees['descrition'].'
<br />
<br />');
$truk = mysql_query("SELECT id, name, html, id_cat FROM epi WHERE id_cat='$id'") or die ("myql_error()");
while($infos = mysql_fetch_array($truk))
{
$html = $infos['html'];
$lien_1 = $infos['id'];
$episode_1 = $infos['name'];
print '<a href="lecteur.php?id='.$lien_1.'" target="_blank">'.$episode_1.'</a><br>';
$lien_1 = $_GET['id'];
}#end if
}
}
mysql_close ();
print ('
</div>
</div>
<div style="text-align: right; margin-right:1cm">
<span class="moyen"> </span>
</div>
<div align="center"></div>
</td>
</tr>
<tr>
<td width="777" height="33" align="center">
</td>
</tr>
');
include "../site/bas.php";
?>
je voudrais sa voir comme regler ce probleme http://www.nolimitanimes.com/site/anime.php
c'est trop decaler sur la droite donc voici mon code :
<?PHP
include "../site/haut.php";
print(' <table class="title_corps" width="778" height="78">
<td width="690" height="63" align="center" valign="middle"><img src="../site/images/stream.png">
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="777" height="7" align="center" >
<br/>
<br />
<div id="corps" align="justify" style="margin-left: 1cm; margin-right: 1cm; ">
');
mysql_connect("localhost", "$$$$$", "$$$$$$");
mysql_select_db("$$$$$$$$$$");
if (empty($_GET['id'])){
$select = mysql_query("SELECT * FROM streaming ORDER BY titre");
$limi_1 = 0;
while($resultat = mysql_fetch_array($select))
{
if ($limi_1 == 3){print '<br>';}
print '<table style="margin: 0pt; padding: 0pt 0pt 0px; background-image: url(../site/images/stream_animbrd.gif); background-repeat: no-repeat; background-position:bottom;" border="0" width="206">
<tbody><tr><td style="margin-bottom:auto; margin: 0pt; padding: 0pt 0pt 0pt 20px; white-space: nowrap;" valign="middle" width="216"><a href="anime.php?id='.$resultat['id'].'" style="text-decoration : none"><font color="#000066"><b>'.$resultat['titre'].'</b></font></a></td></tr><tr><td style="margin: 0pt; padding: 0pt 0pt 12px 2px;" align="left" valign="top" width="206"><a href="anime.php?id='.$resultat['id'].'"><img src='.$resultat['image'].' border="0" style="margin-left: 9px;" title="'.$resultat['titre'].'"/></a></td></tr>
</tbody></table><br></td>
';
$limi_1 += 1;
}
}
else{
$id = $_GET['id'];
$conect = mysql_query("SELECT * FROM streaming WHERE id='$id'");
while($donnees = mysql_fetch_array($conect))
{
print('
<div style="text-align: auto; margin-right:1cm">
<center><h2>'.$donnees['titre'].'</h2>
<img src="'.$donnees['image_2'].'" border="0"/></a><br><p> </p>
'.$donnees['descrition'].'
<br />
<br />');
$truk = mysql_query("SELECT id, name, html, id_cat FROM epi WHERE id_cat='$id'") or die ("myql_error()");
while($infos = mysql_fetch_array($truk))
{
$html = $infos['html'];
$lien_1 = $infos['id'];
$episode_1 = $infos['name'];
print '<a href="lecteur.php?id='.$lien_1.'" target="_blank">'.$episode_1.'</a><br>';
$lien_1 = $_GET['id'];
}#end if
}
}
mysql_close ();
print ('
</div>
</div>
<div style="text-align: right; margin-right:1cm">
<span class="moyen"> </span>
</div>
<div align="center"></div>
</td>
</tr>
<tr>
<td width="777" height="33" align="center">
</td>
</tr>
');
include "../site/bas.php";
?>
A voir également:
- Probleme de position PHP
- Ma position - Guide
- Suivi position google - Guide
- Easy php - Télécharger - Divers Web & Internet
- Partage de position whatsapp - Guide
- Position gps - Guide
7 réponses
Bah avec le CSS, tu metterais l'info de tous tes modules sur un <div id=module> etc... Et plus la peine de tes <td><tr>. Tu mets a chaque debut de module ce div, et il sera automatiquement relié au fichier CSS que t'auras mis a la base de ton site. Pense a dire a celui ci, par les bases meta, de regarder dans ce fichier CSS.
Exactement Ultracid, parce que là c un peu brouillon le code lool !!
Mais c koi le nom de tes deux images qui sont décalé???
Pour qu'on les retrouve dans ton code ..
Mais c koi le nom de tes deux images qui sont décalé???
Pour qu'on les retrouve dans ton code ..
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question
les imag c'est ici
code :
if (empty($_GET['id'])){
$select = mysql_query("SELECT * FROM streaming ORDER BY titre");
$limi_1 = 0;
while($resultat = mysql_fetch_array($select))
{
if ($limi_1 == 3){print '<br>';}
print '<table style="margin: 0pt; padding: 0pt 0pt 0px; background-image: url(../site/images/stream_animbrd.gif); background-repeat: no-repeat; background-position:bottom;" border="0" width="206">
<tbody><tr><td style="margin-bottom:auto; margin: 0pt; padding: 0pt 0pt 0pt 20px; white-space: nowrap;" valign="middle" width="216"><a href="anime.php?id='.$resultat['id'].'" style="text-decoration : none"><font color="#000066"><b>'.$resultat['titre'].'</b></font></a></td></tr><tr><td style="margin: 0pt; padding: 0pt 0pt 12px 2px;" align="left" valign="top" width="206"><a href="anime.php?id='.$resultat['id'].'"><img src='.$resultat['image'].' border="0" style="margin-left: 9px;" title="'.$resultat['titre'].'"/></a></td></tr>
</tbody></table><br></td>
';
$limi_1 += 1;
}
}
c du php si tavai pa vu donc ya pa de nom d'image mai sa sapel '.$resultat['image'].' mais le blem c pa le ccs vu que kan jenleve le td il se met normal mai saligne pas -_-
code :
if (empty($_GET['id'])){
$select = mysql_query("SELECT * FROM streaming ORDER BY titre");
$limi_1 = 0;
while($resultat = mysql_fetch_array($select))
{
if ($limi_1 == 3){print '<br>';}
print '<table style="margin: 0pt; padding: 0pt 0pt 0px; background-image: url(../site/images/stream_animbrd.gif); background-repeat: no-repeat; background-position:bottom;" border="0" width="206">
<tbody><tr><td style="margin-bottom:auto; margin: 0pt; padding: 0pt 0pt 0pt 20px; white-space: nowrap;" valign="middle" width="216"><a href="anime.php?id='.$resultat['id'].'" style="text-decoration : none"><font color="#000066"><b>'.$resultat['titre'].'</b></font></a></td></tr><tr><td style="margin: 0pt; padding: 0pt 0pt 12px 2px;" align="left" valign="top" width="206"><a href="anime.php?id='.$resultat['id'].'"><img src='.$resultat['image'].' border="0" style="margin-left: 9px;" title="'.$resultat['titre'].'"/></a></td></tr>
</tbody></table><br></td>
';
$limi_1 += 1;
}
}
c du php si tavai pa vu donc ya pa de nom d'image mai sa sapel '.$resultat['image'].' mais le blem c pa le ccs vu que kan jenleve le td il se met normal mai saligne pas -_-