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. 1324
Price: $25
website template no. 14529
Price: $66
website template no. 8645
Price: $61
website template no. 12599
Price: $60

The script's execution time was 0.5683 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: Import templates