hi all, im inserting this php script into a javascript
<? while ($line1 = mysql_fetch_array($sql_result1, MYSQL_ASSOC)) { ?>"<? print $line1["url"] . ".jpg"; ?>",
<? }/* Free resultset */
mysql_free_result($sql_result1);?>
example of javascript
slideshowimages("property1.jpg","property12.jpg","property13.jpg","property14.jpg","property15.jpg","property16.jpg","property17.jpg","property18.jpg")
sojavascript with php script
slideshowimages(<? while ($line1 = mysql_fetch_array($sql_result1, MYSQL_ASSOC)) { ?>"<? print $line1["url"] . ".jpg"; ?>",
<? }/* Free resultset */
mysql_free_result($sql_result1);?>)
what it does is this
slideshowimages("property1.jpg","property12.jpg","property13.jpg","property14.jpg","property15.jpg","property16.jpg","property17.jpg","property18.jpg",)
notice the extra , comma at the ends of ...","property18.jpg",)
that is screwing up the javascript i need to not have it put the end comma on.
anyone able to help.
cheers.