arcani
10-19-2006, 02:46 AM
1) Script Title:
Pausing RSS scroller
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex17/rsspausescroller/index.htm
3) Describe problem:
php array association syntax error:(filename:scrollbrigde.php:line74)
writen:
echo "rsscontentdata.$divid" . "[$i]={link:\"" . sla****($item[link]) . "\", title:\"" . sla****($item[title]) . "\", description:\"" . sla****($item[description]) . "\", date:\"" . sla****($item[pubDate]) . "\"}\n";
the script above produce notice that prevent browser to work properly (stop at all).
suppose to be:
echo "rsscontentdata.$divid" . "[$i]={link:\"" . sla****($item["link"]) . "\", title:\"" . sla****($item["title"]) . "\", description:\"" . sla****($item["description"]) . "\", date:\"" . sla****($item["pubDate"]) . "\"}\n";
note: since PHP 4.3 array association with text should be using "" mark, otherwise parser will consider it as constant.
Pausing RSS scroller
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex17/rsspausescroller/index.htm
3) Describe problem:
php array association syntax error:(filename:scrollbrigde.php:line74)
writen:
echo "rsscontentdata.$divid" . "[$i]={link:\"" . sla****($item[link]) . "\", title:\"" . sla****($item[title]) . "\", description:\"" . sla****($item[description]) . "\", date:\"" . sla****($item[pubDate]) . "\"}\n";
the script above produce notice that prevent browser to work properly (stop at all).
suppose to be:
echo "rsscontentdata.$divid" . "[$i]={link:\"" . sla****($item["link"]) . "\", title:\"" . sla****($item["title"]) . "\", description:\"" . sla****($item["description"]) . "\", date:\"" . sla****($item["pubDate"]) . "\"}\n";
note: since PHP 4.3 array association with text should be using "" mark, otherwise parser will consider it as constant.