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

files

Codes here !

Moderators: macek, egami, gesf

files

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

Hi...

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


thanks
tranquillo
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
http://phpbuilder.com/columns/florian19991014.php3
but I recommend using the system I suggested above, it's much faster.
User avatar
Joan Garnet
Moderator
Moderator
 
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 4 guests

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