jbwebdesign Posted January 27, 2009 Report Share Posted January 27, 2009 hello everyone, I was wondering if anyone can help me out..... I created a script and I want it to display the data inside the directory but I cant get it to display properly..... you see I am trying to make a link so that the file inside the directory becomes clickable and it will display when you click it but I am having a problem with the loops.... here is my script when i run the script it doesn't link to the proper data file inside the directory...... does anyone have any idea why?? <?php $dir = "FORMfields/forms/generated/"; $files = scandir($dir); foreach($files as $key => $value){ echo ' Quote Link to comment Share on other sites More sharing options...
falkencreative Posted January 27, 2009 Report Share Posted January 27, 2009 I actually used something similar to this in a recent project... I don't have access to those files right at the moment, but I will post what I used later today when I have the chance. Quote Link to comment Share on other sites More sharing options...
jbwebdesign Posted January 27, 2009 Author Report Share Posted January 27, 2009 okay, sounds good thanks......Because I really want to know what I am doing wrong Quote Link to comment Share on other sites More sharing options...
falkencreative Posted January 28, 2009 Report Share Posted January 28, 2009 I played with your code a little... looks like you were missing a closing quote on your tag: echo ''; I believe that should take care of your problem... let me know if you have any other questions, or if you are still have trouble. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.