Board index   FAQ   Search  
Register  Login
Board index php forum :: Database mySQL & php coding


Codes here !

Moderators: macek, egami, gesf


Postby tranquillo » Wed Jan 08, 2003 9:56 am


how do I insert a file into a database? like a .rm, .swf or a jpeg.

New php-forum User
New php-forum User
Posts: 74
Joined: Sun Nov 24, 2002 6:48 pm
Location: katrineholm

Postby Joan Garnet » Wed Jan 08, 2003 3:22 pm

Insert the URL to the file and then use a query to call it.
Code: Select all
<param name="movie" value="<?php echo $row["my_swf"]; ?>" >

There are some functions to store images in the database as well
but I recommend using the system I suggested above, it's much faster.
User avatar
Joan Garnet
Posts: 387
Joined: Sat Aug 03, 2002 2:56 am
Location: Mars

Return to mySQL & php coding

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.