Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Specials Slide Show


Recommended Posts

using meta refresh and a single frame frameset - we should be able to dynamically refresh through all the specials...


this is the code so far:



$specials_query_raw = "select s.products_id from " . TABLE_SPECIALS . " s where s.status = '1'";

$specials_query = tep_db_query($specials_query_raw);

$specialsarray = tep_db_fetch_array($specials_query);

$specials = $specialsarray;

$spesh_id = array_rand($specials);

$hyperlink = tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $specials[$spesh_id]);
<title>Specials Slide Show</title>
<meta http-equiv="refresh" content="2;url=specials-slide.php">

<frameset cols="*">

echo "<frame src='$hyperlink' marginwidth=0 marginheight=0>";




however - at the moment it only displays one special..


can anyone help me get the code right so that it pulls a random product id from the specials table?


thanks in advance :D

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...