Thanks for your help Vaaaska,I've got ithe bloody thing working now. The script creates an array and then populates it with images from a folder. The folder path comes from the mysql table.
Works great and I can call the php script from the javascript page but I can't integrate the php and the javascript scripts into dreamweaver. I'm sending the mysql info for the select/from/where to the php page which gets the folder path. The array is then created and populated but I want to display the javascript html page with the slideshow on it.
I think that I need to embed the php script into the javascript page. Or even better get the php page to call the javascript. I don't know and getting confused !
Regards