Do you want to create a javascript array of the file names? Do the file names exist on the server? If so, just generate and populate a javascript array with the id and matching name, then load the article when the link is clicked.
-Nicole www.aeontrek.com R.S. Herhuth wrote: > I have a situation where I will be pulling back an article that may > contain none or several references to link IDs in the following format: > <a href="javascript:void(FILELINK('226'))"></a> > > The rest of the article is basically text in the format of a news > article. What I need to do is to extract the ID (the #226 in this > example) and run a query returning it's value and replacing the 226 with > the link. I can't change the database to meet my needs unfortunately. > I am using MSSQL Server 2000. > > So the flow looks like this (as I see it): > > 1. Run a query bringing back the article as a string. (I've built this already) > > 2. Search the string for the pattern above which will always be the same > except the ID value will of course be different in each occurance, and > store the IDs in an array. (I have no idea how to do this) > > 3. I will then run a query returning the actual links and search for the > ID and replace the ID number with the associated link. (I should be able > to figure this out. > > > Can anyone offer a suggestion on how to do this? Does my logic flow > seem solid? > > Thanks for any help, > Ron -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php