Demos » Show random web templates from your MySQL database

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

Example output:

  • website template no. 22053
    Price: $25
  • website template no. 11655
    Price: $64
  • website template no. 9556
    Price: $25
  • website template no. 13249
    Price: $25

Related PHP functions:

mysql_fetch_object | mysql_query | array_rand | substr | strpos

Click here for the PHP script: TemplateMonster XML API Script