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. 19532
Price: $63.00
website template no. 19605
Price: $67.00
website template no. 19660
Price: $64.00
website template no. 19662
Price: $63.00

The script's execution time was 0.0000 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