MySQL Forums
Forum List  »  PHP

Re: field references file on the network
Posted by: Rick James
Date: March 30, 2014 10:55PM

> data as well as other PDFs and Images that are located across a few different servers.

Solve that in PHP, not MySQL.

The MySQL table(s) could have VARCHAR column(s) containing strings such as:
http://...pdf
http://...jpg
The PHP code could have something like
$ref = <get the http...jpg from the table>;
echo "<img src='$ref'>";

A pdf might have to be done with an anchor tag:
echo "<a href='$ref'>See the pdf</a>";

Options: ReplyQuote


Subject
Written By
Posted
Re: field references file on the network
March 30, 2014 10:55PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.