samedi 19 avril 2014

php code in mysql table


Vote count:

0




Hi i have a table with each cell having some html link with some php variable as below



<a href="http://ift.tt/1i4f6K5 echo $var1.$var2; ?>" target="_blank"><img class="box" src="image1.jpg">Click to buy</img></a>


now i have this stored in column offer in a mysql table offers. When i fetch this on my php page like this:



<?php $or=mysql_fetch_array($o); ?>
<table>
<tr><td>
<?php echo $or['offer'];?>
</td></tr></table>


on display page, it has a link like this



`http://ift.tt/1hXaY4D`


Please advice how i should go about it so that x2= the variables var1.var2 values. Thanks.



asked 1 min ago






Aucun commentaire:

Enregistrer un commentaire