How to increment on load of page ?
HI all i got this php that plays a real audio songs. I want to the value of song=1507 be changed(incremented by one) each time the page reloads or get refreshed. For example the start point i want to specify it as song=1520 and it keep incrementing it each time the page get re loaded.I be happy if some one show me how that can be done.Thanks
VB Code:
<html>
<head>
<title></title>
</head>
start point song=1507 --- end point song=1520
<body bgColor=#336699 leftmargin="0" topmargin="0">
<OBJECT CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" HEIGHT=60 WIDTH=285>
<PARAM NAME="controls" VALUE="ControlPanel,StatusBar">
<PARAM NAME="console" VALUE="Clip1">
<PARAM NAME="autostart" VALUE="true">
<PARAM NAME="src" VALUE="http://localhost/new/play.php?d=04&[B]song=1507[/B]">
</OBJECT>
</body>
</html>
Re: How to increment on load of page ?
One way would be to store the value in a cookie then read it each time the page is loaded and add 1....HTH :)
Re: How to increment on load of page ?
Quote:
Originally Posted by lintz
One way would be to store the value in a cookie then read it each time the page is loaded and add 1....HTH :)
I think me meant globally, if that is the case then you''ll need something like MySQL or a flatfile database to do it for each download :-)
Cheers,
Ryan Jones