I'm using PHP to pull info from a mySQL database to poulate (terminology?) an array in a javascript used for a rollover effect.
I need for the output to display like this:
'adams', '../images/adams.gif',
'jones', '../images/jones.gif',
'smith', '../images/smith.gif'
The names adams, jones and smith are stored in a field named "filename", and that is the only thing that changes in each row.
My SELECT statement is quite simple, but how should I do the coding for the WHILE statement to loop through the results and to chop the comma off of the final row?
I have been experimenting for the last 24 hours and searching through all the forums and tutorials I could find, but haven't quite got it.
Thank you for your help,
Kathleen ~~~