voila je dois faire un lien vers un page web mais ca ne fonctionne pas !!
voici mon code ..
$requete_txt = "SELECT * from corolle_fiches_pdt_us where ref= '".$_GET['ref']."' ";
$result = $bdd->result_to_array($bdd->query($requete_txt));
for($i=0;$i<count($result);$i++)
{
if ($result[$i][8] > 0)
{
echo "<a href='http://www.shopatron.com/product/product_id=COD/205.0' target='_blank' ><img src= '../../images/buy_now.jpg' alt='Buy now' width='55' height='27' border='0' align='middle'></a> ;"
}
}
Mon code est fonctionnel, mais le seul truc c'est que ce n'est pas le bon lien.. Je m'explique...Je recuper la réference du produit et je dois la mettre dans mon lien c'est adire que je dois obtenir ceci comme lien http://www.shopatron.com/product/product_id=COD_ma_ref_/205.0
et non
http://www.shopatron.com/product/product_id=COD/205.0
Je pense qu'il faut faire une recuperation de variable avec un GET mais comment faire.. Ps: ca ne fonctionne pas ca ... J'ai essayé
echo "<a href='http://www.shopatron.com/product/product_id=COD<? echo $_GET['ref'];?>/205.0' target='_blank' ><img src= '../../images/buy_now.jpg' alt='Buy now' width='55' height='27' border='0' align='middle'></a> ;"
Merci a vous toussssssss