quick dirty “recommended book” link
-
I just whacked out a very very simple modificaton to show a recommended book or other item from Amazon with a text link and brief description. You can see it on the left side of the page: https://www.joeclark.net. I added the table “aads” to my MySQL database and entered a few books manually, then added the following to the page:
<!-- begin dynamic amazon ad -->
<?php $aads = $wpdb->get_results("SELECT * FROM aads ORDER BY RAND() LIMIT 1");
if ($aads) { ?>- Joe RECOMMENDS
<?php foreach ($aads as $aad) { ?>
- <table class="amazontable" cellpadding="2" cellspacing="0"><tr>
<td>aads_code ?>/joeclarknet-20/ref=nosim"><?= $aad->aads_link ?>
<?= $aad->aads_words ?></td>
<td>aads_code ?>/joeclarknet-20/ref=nosim"> <img src="https://images.amazon.com/images/P/<?= $aad->aads_code ?>.01.THUMBZZZ.jpg" align="right"></td>
</tr></table><?php } ?>
<?php } ?>
<!-- end amazon dynamic ad -->
Please feel free you use it on your site. Don’t drop the “joeclarknet-20” from your code… that’s important so I’ll get the commissions! ?? - Joe RECOMMENDS
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘quick dirty “recommended book” link’ is closed to new replies.