]] , and Iam having trouble. I query the database and fetch the php mysql array and use json to encode the array and write the object out to the page. The data does not format properly and of course the images and links I am reading from the database are not found. FYI the JS code is a scroller that works fine in static mode where the paths and images are define in the page code.
Here below is the code being used to create the JS object...
Get query with success.......
while( $r = mysql_fetch_assoc($result)
$image_name = $imageurl.$r['image_name']
ick to view",'.'"http://url/main.html
echo json_encode( $image_name ); ?>;
the static code looks as shown below, the code the above script is writing is backslashed and has many formatting problems such as missing "[" and to many double quoates in the wrong places.
","Click to view","http://url/main.html
If anyone has a clean fix for me please pass it on, Im in a hurry on this one and do not want to re invent the wheel, please stick with a solution that fits where we are unless you have an easy and elegant alternative.