par
agité » 26 juin 2006, 14:11
il me boucle 4 fois l'image et les lien ne marchent pas, il doit y avoir une erreur dans ta correction ou dans le reste de mon code de je pense !
je le remet en entier pour voir si tu vois une faute :
<?php
require("connect.php");
/* Création d'un tableau : la première partie sera l'en-tête et n'a pas besoin d'être répétée */
?>
<table border="0" width="100%" cellpadding="1" cellspacing="2">
<tr>
<td colspan="2"><a href="newSong.php?<?php echo $SID; ?>">  <b>Ajouter un morceau</b><br><br></a></td>
</tr>
<tr>
<th width="10%" class="td3" >Dâte creation</th>
<th width="20%" class="td3" >Nom</th>
<th width="20%" class="td3" >Style</th>
<th width="35%" class="td3" >Description</th>
<th width="15%" class="td3" >Lien</th>
</tr>
<?php
/* Maintenant on va créer une nouvelle ligne dans notre tableau par ligne de données : on utilise une boucle */
$verif = mysql_query("SELECT `nom`, `description`, `date`, `genre`, `lien` FROM `mix` WHERE artiste LIKE '%". $_SESSION['login'] ."%' ");
while(($row = mysql_fetch_array($verif)) != false)
{
?>
</table>
<table border="0" width="10%" cellpadding="0" cellspacing="0">
<?php for($i = 0; $i <= $var2['nb']; $i++){?>
<form method="POST" action="editsong.php" name="envoie<?php echo $i; ?>">
<input type="hidden" name="musique" value="<?php echo $row['nom']; ?>">
<tr>
<td class="edit"><a href="javascript:envoie<?php echo $i; ?>.submit();"><img src="icon_edit.gif" border="0"></img></a></td>
</tr><br>
</form>
<?php }//fin for ?>
</table>
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="10%" class="liste_ouvre"><?php echo($row['date']); ?></td>
<td width="20%" class="liste"><?php echo($row['nom']); ?></td>
<td width="20%" class="liste"><?php echo($row['genre']); ?></td>
<td width="35%" class="liste"><?php echo ($row['description']); ?></td>
<td width="15%" class="liste_ferme"><a href="<?php echo($row['lien']); ?>"> Telecharger</a></a></td>
</tr>
<?php
}
?>
</table><br>
la je vois vraiment pas d'ou peux venir la faute, et surtout pourquoi les lien submit en javascript ne marchent pas...
[EDIT] les lien ne marchent que sous internet explorer mais pas sur firefox ...
il me boucle 4 fois l'image et les lien ne marchent pas, il doit y avoir une erreur dans ta correction ou dans le reste de mon code de je pense !
je le remet en entier pour voir si tu vois une faute :
[php]<?php
require("connect.php");
/* Création d'un tableau : la première partie sera l'en-tête et n'a pas besoin d'être répétée */
?>
<table border="0" width="100%" cellpadding="1" cellspacing="2">
<tr>
<td colspan="2"><a href="newSong.php?<?php echo $SID; ?>">  <b>Ajouter un morceau</b><br><br></a></td>
</tr>
<tr>
<th width="10%" class="td3" >Dâte creation</th>
<th width="20%" class="td3" >Nom</th>
<th width="20%" class="td3" >Style</th>
<th width="35%" class="td3" >Description</th>
<th width="15%" class="td3" >Lien</th>
</tr>
<?php
/* Maintenant on va créer une nouvelle ligne dans notre tableau par ligne de données : on utilise une boucle */
$verif = mysql_query("SELECT `nom`, `description`, `date`, `genre`, `lien` FROM `mix` WHERE artiste LIKE '%". $_SESSION['login'] ."%' ");
while(($row = mysql_fetch_array($verif)) != false)
{
?>
</table>
<table border="0" width="10%" cellpadding="0" cellspacing="0">
<?php for($i = 0; $i <= $var2['nb']; $i++){?>
<form method="POST" action="editsong.php" name="envoie<?php echo $i; ?>">
<input type="hidden" name="musique" value="<?php echo $row['nom']; ?>">
<tr>
<td class="edit"><a href="javascript:envoie<?php echo $i; ?>.submit();"><img src="icon_edit.gif" border="0"></img></a></td>
</tr><br>
</form>
<?php }//fin for ?>
</table>
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="10%" class="liste_ouvre"><?php echo($row['date']); ?></td>
<td width="20%" class="liste"><?php echo($row['nom']); ?></td>
<td width="20%" class="liste"><?php echo($row['genre']); ?></td>
<td width="35%" class="liste"><?php echo ($row['description']); ?></td>
<td width="15%" class="liste_ferme"><a href="<?php echo($row['lien']); ?>"> Telecharger</a></a></td>
</tr>
<?php
}
?>
</table><br>
[/php]
la je vois vraiment pas d'ou peux venir la faute, et surtout pourquoi les lien submit en javascript ne marchent pas...
[EDIT] les lien ne marchent que sous internet explorer mais pas sur firefox ...