• joe_doufu

    (@joe_doufu)


    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) { ?>

    <?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! ??

Viewing 1 replies (of 1 total)
  • Do you suppose that this would work with Powell’s or another non-Amazon vendor by simply changing the dot com address?

Viewing 1 replies (of 1 total)
  • The topic ‘quick dirty “recommended book” link’ is closed to new replies.