A
Anonymous
Guest
Hi
I have a MySQL DB table with the following structure:
Scans
----------------------------------------------------
| ID | Name | Source | Date | File |
|---------------------------------------------------
| 1 | PC 1 | Old | 10/03/04 | [BLOB] |
| 2 | PC 1 | New | 19/03/04 | [BLOB] |
| 3 | PC 2 | Old | 11/03/04 | [BLOB] |
| 4 | PC 2 | New | 21/03/04 | [BLOB] |
| 5 | PC 3 | New | 23/03/04 | [BLOB] |
----------------------------------------------------
What I need to do is create a query where I can select the name, source and type from a drop-down and when I submit to stream the appropriate pdf file stored in BLOB to the browser window. Or if that is not possible, open Acrobat Reader. However, if at all possible I do not want anyone to be able to save or print the BLOB file once it has opened. I have two problems with doing all of this:
1) Getting the select statement to work. How do I make a dropdown that can select by the name, date or type while only displaying valid info for the specific query? Example: If I select PC 2 in my dropdown I need it to allow me to select Old or New with the respective dates and upon submitting, showing me the right blob file.
2) Is it possible to stream the BLOB to my browser somehow? Or is it possible to prevent someone from saving and printing if it opens through their Acrobat Reader?
I know this must sound really newb, but I would appreciate some help on this.
I have a MySQL DB table with the following structure:
Scans
----------------------------------------------------
| ID | Name | Source | Date | File |
|---------------------------------------------------
| 1 | PC 1 | Old | 10/03/04 | [BLOB] |
| 2 | PC 1 | New | 19/03/04 | [BLOB] |
| 3 | PC 2 | Old | 11/03/04 | [BLOB] |
| 4 | PC 2 | New | 21/03/04 | [BLOB] |
| 5 | PC 3 | New | 23/03/04 | [BLOB] |
----------------------------------------------------
What I need to do is create a query where I can select the name, source and type from a drop-down and when I submit to stream the appropriate pdf file stored in BLOB to the browser window. Or if that is not possible, open Acrobat Reader. However, if at all possible I do not want anyone to be able to save or print the BLOB file once it has opened. I have two problems with doing all of this:
1) Getting the select statement to work. How do I make a dropdown that can select by the name, date or type while only displaying valid info for the specific query? Example: If I select PC 2 in my dropdown I need it to allow me to select Old or New with the respective dates and upon submitting, showing me the right blob file.
2) Is it possible to stream the BLOB to my browser somehow? Or is it possible to prevent someone from saving and printing if it opens through their Acrobat Reader?
I know this must sound really newb, but I would appreciate some help on this.