Main Menu

HOME

.Net
ASP
Assembly
C
C++
Delphi
HTML
Java
JavaScript
MySQL
PC interface
Powershell
Perl
PHP
VBScript
Visual Basic
XML

Sedo - Buy and Sell Domain Names and Websites project info: programmershelp.co.uk Statistics for project programmershelp.co.uk etracker® web controlling instead of log file analysis

   Misc

   Amazon

   Links

    


Random Amazon book link

 

This will display a text link to a random book from amazon, change the links to your own. The urlama is the url to the page for the book on Amazon with your affiliate ID on the end. descama is a description which is displayed .

Here is the code.

<?php
//the URL of each book
$urlama = array("http://www.amazon.com/exec/obidos/ASIN/1861002963/basicvisualbasic",
"http://www.amazon.com/exec/obidos/ASIN/1565927699/basicvisualbasic",
"http://www.amazon.com/exec/obidos/ASIN/076152729X/basicvisualbasic",
"http://www.amazon.com/exec/obidos/ASIN/0672318040/basicvisualbasic");
//description of each book
$descama = array("Professional Php Programming (Programmer...",
"PHP Pocket Reference",
"Php Essentials",
"Teach Yourself PHP4 in 24 Hours...");
//generate a random number
srand((double)microtime() * 1000000);
$randno = (rand()%4);
//display random URL
echo ("<a href = $urlama[$randno]>$descama[$randno]</a>");
?>

 

 

 

 

 




   Sponsors
 

   Software
500 Java Tips E-book
PHP editor
PERL editor
Beginning Java
Beginning Visual Basic
Learn VB.net
Learn VB 6
VB and databases
ASP image library
C++ builder programming
C++ fundamentals

   Source Code
Colored menu(C)
display all programs installed in program Files(VBScript)
capture desktop window(VB)
a simple class(PHP)
backup a folder to a zip file(PHP)
displays information about your computer(Powershell)
no right click function(Javascript)
bubble effect(VB)

    




Copyright © 2003 by programmershelp.co.uk