Files stored in mysql

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I need some advise on how to handle some pfd files. We have sales guys out
in the field and generally need to access client reports regularly. I was
thinking about making a dir for each rep, subdir for each client and posting
the pfd files there. 

After the reps auth from the login page I call an iframe depending on the
user:
<?php if($row_get_user['username'] ==rep1) print '<iframe id="User"
name="Userss" src="repdata/rep1/dlist.php" width="100%" height="100%"
scrolling="AUTO" frameborder="1" marginwidth="0"
marginheight="0"></iframe>'; ?>

<?php if($row_get_user['username'] ==rep2) print '<iframe id="User"
name="Userss" src="repdata/rep2/dlist.php" width="100%" height="100%"
scrolling="AUTO" frameborder="1" marginwidth="0"
marginheight="0"></iframe>'; ?>

This is going to be a pain later when we get all the guys stuff online. The
iframe calls dlist.php which will display all the data in a directory. 

There has got to be a better way to handle this. How would I go about
storing the pdf files in mysql and printing all the files in a nice linked
table do onclick of filename it will open the pfd file to read?

Any help would be greatly appreciated.

P.S. sorry about the read request in my last post

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux