Un pote ma aider a faire certaine page de mon site en php. C'est les zooms de mes photos. Tout marche impeccable sauf que mes photos qui sont verticale sont déformées. Elle sont aplatie. On arrive pas a trouver d'où ça vient.
J'ai verifie que les proportions soit bonne et elles sont bonne. C'était impec avant, mais bon on sai jamais. j'ai meme redimentionne les photo verticales. Le pote a verifier et re-verifier le code de la page mais il ne vois rien.
Voir un exemple (la photo de l'exemple est verticale normalement).
Je met le code de la page si ca peut servir :
CODE
<!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">
<title>nenex argazkia - zoom -</title>
</head>
<body bgcolor="#CC00FF" background="../../elements_des_pages/arriere_plan.jpg">
<table width="100%" border="1" cellspacing="0" cellpadding="0">
<tr bgcolor="#FFCCCC">
<td width="22%" height="31" valign="middle" bgcolor="#FFCCCC"><div align="center"><font size="2" face="Comic Sans MS"><a href="http://www.nenex-argazkia.com"><strong>
<?php
$id = $_GET['id']; // On cree une variable id qui a pour valeur le nombre qui se trouve a la fin de zoom.php?id=..
include('fonc.inc.php');
$base = mysql_connect ($serveur_mysql, $login_mysql, $pass_mysql); // Connection base de donnee
mysql_select_db ('db199824306', $base); // Selection la table de la base de donnee
$reponse = mysql_query("SELECT * FROM zoom_tirage_illimite WHERE id_image = $id ;") or die(mysql_error()); //SQL, selection de tous les champs id_image
$donnees = mysql_fetch_array($reponse); //Recuperer les donnees qui sont dans la base de donnee
//On cree une variable description qui a pour valeur ce qu'il y a dans le champ description de la base de donnee ou le id_image qui se trouve a la fin de zoom.php?id=..
$description = $donnees['description'];
//On cree une variable lien_image qui a pour valeur ce qu'il y a dans le champ lien_image de la base de donnee ou le id_image qui se trouve a la fin de zoom.php?id=..
$lien_image = $donnees['lien_image'];
//On cree une variable paypal qui a pour valeur ce qu'il y a dans le champ paypal de la base de donnee ou le id_image qui se trouve a la fin de zoom.php?id=..
$panier = $donnees['panier'];
//On cree une variable album qui a pour valeur ce qu'il y a dans le champ num_album de la base de donnee ou le id_image qui se trouve a la fin de zoom.php?id=..
$album = $donnees['num_album'];
$fleche_suivante = $id + 1;
$fleche_precedente = $id - 1;
?>
</strong></a><a href="http://www.nenex-argazkia.com"><strong>ACCUEIL</strong></a></font></div></td>
<td width="25%" valign="middle" bgcolor="#FFCCCC"><div align="center"><font color="#0000CC" face="Comic Sans MS"><a href="http://www.nenex-argazkia.com/langue_francais/mes_photos/accueil_albums.htm">RECHERCHE</a></font></div></td>
<td width="21%" valign="middle" bgcolor="#FFCCCC"><div align="center"><font size="2" face="Comic Sans MS"><a href="http://nenex-argazkia.com/tinc?key=0Nssi2Mz&formname=contact_nenex" target="_blank"><strong>CONTACT</strong></a> </font></div></td>
<td width="32%" bgcolor="#FFCCCC"><div align="center"><a href="../../albums/album-tirages-illimite/album-01-illimite.htm"><strong><font size="2" face="Comic Sans MS">RETOUR ALBUM</font></strong></a></div></td>
<td width="32%" bgcolor="#FFCCCC"><div align="center">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="52%"><div align="center">
<?php
// Si tu décide de changer le répertoire de cette page, modifie les adresses des liens qui se terminent par zoom.php?id=..
if($id != "1")
{
echo'<a href="http://www.nenex-argazkia.com/langue_francais/mes_photos/zoom_fr/zoom-tirage-illimite/zoom-tirrage-illimite.php?id='.$fleche_precedente.'"><img src="http://www.nenex-argazkia.com/elements_des_pages/fleche_precedente_coul.gif" width="50" height="27" border="0"></a>';
}
else
{
echo'<img src="http://www.nenex-argazkia.com/elements_des_pages/fleche_precedente_nb.gif" width="50" height="27">';
}
?>
</div></td>
<td width="48%"><div align="center"><?php echo'<a href="http://www.nenex-argazkia.com/langue_francais/mes_photos/zoom_fr/zoom-tirage-illimite/zoom-tirrage-illimite.php?id='.$fleche_suivante.'"><img src="http://www.nenex-argazkia.com/elements_des_pages/fleche_suivante_coul.gif" width="50" height="27" border="0"></a>'; ?></div></td>
</tr>
</table>
</div></td>
</tr>
</table>
<table width="100%" height="330" border="0" cellpadding="5" cellspacing="0">
<tr>
<td width="50%" align="center" valign="middle" bgcolor="#CCCCFF"><table width="200" border="0">
<tr>
<td>
<div><?php echo'<img src="http://www.nenex-argazkia.com/argazkiak-fr/foto_zoom/photos-tirage-illimite/'.$lien_image.'" width="375" height="251" border="1">'; //Si tu changes de dossier, changes uniquement le lien et ne touche pas aux guillemets ' et à .$lien_image.?></div></td>
</tr>
</table></td>
<td width="50%" valign="top" bgcolor="#CCCCFF"><br>
<table width="84%" border="1" align="center" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="#FFCCCC"><div align="center"><strong><font size="2" face="Comic Sans MS">
<?php echo'<a href="http://www.nenex-argazkia.com/langue_francais/commander_fr/panier/catalog/product_info.php?'.$panier.'" target="_blank">ACHETER CETTE PHOTO </a>'; ?></font></strong></div></td>
</tr>
</table>
<p align="center"><?php echo''.$description.''; ?></p></td>
</tr>
</table>
</body>
</html>
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>nenex argazkia - zoom -</title>
</head>
<body bgcolor="#CC00FF" background="../../elements_des_pages/arriere_plan.jpg">
<table width="100%" border="1" cellspacing="0" cellpadding="0">
<tr bgcolor="#FFCCCC">
<td width="22%" height="31" valign="middle" bgcolor="#FFCCCC"><div align="center"><font size="2" face="Comic Sans MS"><a href="http://www.nenex-argazkia.com"><strong>
<?php
$id = $_GET['id']; // On cree une variable id qui a pour valeur le nombre qui se trouve a la fin de zoom.php?id=..
include('fonc.inc.php');
$base = mysql_connect ($serveur_mysql, $login_mysql, $pass_mysql); // Connection base de donnee
mysql_select_db ('db199824306', $base); // Selection la table de la base de donnee
$reponse = mysql_query("SELECT * FROM zoom_tirage_illimite WHERE id_image = $id ;") or die(mysql_error()); //SQL, selection de tous les champs id_image
$donnees = mysql_fetch_array($reponse); //Recuperer les donnees qui sont dans la base de donnee
//On cree une variable description qui a pour valeur ce qu'il y a dans le champ description de la base de donnee ou le id_image qui se trouve a la fin de zoom.php?id=..
$description = $donnees['description'];
//On cree une variable lien_image qui a pour valeur ce qu'il y a dans le champ lien_image de la base de donnee ou le id_image qui se trouve a la fin de zoom.php?id=..
$lien_image = $donnees['lien_image'];
//On cree une variable paypal qui a pour valeur ce qu'il y a dans le champ paypal de la base de donnee ou le id_image qui se trouve a la fin de zoom.php?id=..
$panier = $donnees['panier'];
//On cree une variable album qui a pour valeur ce qu'il y a dans le champ num_album de la base de donnee ou le id_image qui se trouve a la fin de zoom.php?id=..
$album = $donnees['num_album'];
$fleche_suivante = $id + 1;
$fleche_precedente = $id - 1;
?>
</strong></a><a href="http://www.nenex-argazkia.com"><strong>ACCUEIL</strong></a></font></div></td>
<td width="25%" valign="middle" bgcolor="#FFCCCC"><div align="center"><font color="#0000CC" face="Comic Sans MS"><a href="http://www.nenex-argazkia.com/langue_francais/mes_photos/accueil_albums.htm">RECHERCHE</a></font></div></td>
<td width="21%" valign="middle" bgcolor="#FFCCCC"><div align="center"><font size="2" face="Comic Sans MS"><a href="http://nenex-argazkia.com/tinc?key=0Nssi2Mz&formname=contact_nenex" target="_blank"><strong>CONTACT</strong></a> </font></div></td>
<td width="32%" bgcolor="#FFCCCC"><div align="center"><a href="../../albums/album-tirages-illimite/album-01-illimite.htm"><strong><font size="2" face="Comic Sans MS">RETOUR ALBUM</font></strong></a></div></td>
<td width="32%" bgcolor="#FFCCCC"><div align="center">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="52%"><div align="center">
<?php
// Si tu décide de changer le répertoire de cette page, modifie les adresses des liens qui se terminent par zoom.php?id=..
if($id != "1")
{
echo'<a href="http://www.nenex-argazkia.com/langue_francais/mes_photos/zoom_fr/zoom-tirage-illimite/zoom-tirrage-illimite.php?id='.$fleche_precedente.'"><img src="http://www.nenex-argazkia.com/elements_des_pages/fleche_precedente_coul.gif" width="50" height="27" border="0"></a>';
}
else
{
echo'<img src="http://www.nenex-argazkia.com/elements_des_pages/fleche_precedente_nb.gif" width="50" height="27">';
}
?>
</div></td>
<td width="48%"><div align="center"><?php echo'<a href="http://www.nenex-argazkia.com/langue_francais/mes_photos/zoom_fr/zoom-tirage-illimite/zoom-tirrage-illimite.php?id='.$fleche_suivante.'"><img src="http://www.nenex-argazkia.com/elements_des_pages/fleche_suivante_coul.gif" width="50" height="27" border="0"></a>'; ?></div></td>
</tr>
</table>
</div></td>
</tr>
</table>
<table width="100%" height="330" border="0" cellpadding="5" cellspacing="0">
<tr>
<td width="50%" align="center" valign="middle" bgcolor="#CCCCFF"><table width="200" border="0">
<tr>
<td>
<div><?php echo'<img src="http://www.nenex-argazkia.com/argazkiak-fr/foto_zoom/photos-tirage-illimite/'.$lien_image.'" width="375" height="251" border="1">'; //Si tu changes de dossier, changes uniquement le lien et ne touche pas aux guillemets ' et à .$lien_image.?></div></td>
</tr>
</table></td>
<td width="50%" valign="top" bgcolor="#CCCCFF"><br>
<table width="84%" border="1" align="center" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="#FFCCCC"><div align="center"><strong><font size="2" face="Comic Sans MS">
<?php echo'<a href="http://www.nenex-argazkia.com/langue_francais/commander_fr/panier/catalog/product_info.php?'.$panier.'" target="_blank">ACHETER CETTE PHOTO </a>'; ?></font></strong></div></td>
</tr>
</table>
<p align="center"><?php echo''.$description.''; ?></p></td>
</tr>
</table>
</body>
</html>
merci d'avance pour votre aide.
