Show website template data from you MySQL database and images from your local server


Showing random template data from a MySQL database

This example show some random website templates based on some selected templates stored in the database. The thumbnail location is local and the template preview data is on a remote location.

Example output:

website template no. 5364
Price: $69
website template no. 15245
Price: $64
website template no. 1617
Price: $44
website template no. 20872
Price: $63

The script's execution time was 2.2730 seconds...

Refresh this page! (to notice the random effect)

Related PHP functions:

mysql_fetch_object | mysql_query | array_rand | substr | strpos

Click here for the PHP script: TemplateMonster XML API Script