damienmcd is right - why not store the files on the file system?
Also, you reference the variable $id but never define it. Perhaps you meant $_GET['id'] instead? See this manual page for more information about how to use data from external sources (e.g. the query string): [man]variables.external[/man].
EDIT: Also note that user-supplied data should never be placed directly into a SQL query string else your code will be vulnerable to SQL injection attacks and/or just plain SQL errors. Instead, it must first be sanitized with a function such as [man]mysql_real_escape_string/man (for string data; for numeric data, cast the data to the appropriate type... e.g. for integers cast to (int) or use [man]intval/man).
Finally, when posting for help, you should always give us as much error/debugging information as possible. For example, seeing the following PHP error messages that your script is generating would have been beneficial:
<br />
<b>Warning</b>: mysql_result(): supplied argument is not a valid MySQL result resource in <b>/home/jkaleb/public_html/getdata.php</b> on line <b>11</b><br />
<br />
<b>Warning</b>: mysql_result(): supplied argument is not a valid MySQL result resource in <b>/home/jkaleb/public_html/getdata.php</b> on line <b>12</b><br />
<br />
<b>Warning</b>: Cannot modify header information - headers already sent by (output started at /home/jkaleb/public_html/getdata.php:11) in <b>/home/jkaleb/public_html/getdata.php</b> on line <b>14</b><br />