You are here:  » Random Products Interval

Support Forum



Random Products Interval

Submitted by cq on Tue, 2007-08-21 05:15 in

Hi David,

I insert the following codes into categories.php but getting the error message

$seed = intval(time()/)600;

Parse error: syntax error, unexpected ')' ......./categories.php on line 42
But if i use

$seed = intval(date("Ymd"));

it works. How can i correct this. thanks.

Full code:

{CODE SAVED}

Submitted by support on Tue, 2007-08-21 07:46

Hi,

Looks like a typo there - try the following:

$seed = intval(time()/600);

That should do the trick!
Cheers,
David.