upload an image file to a PostgreSQL table

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
blueriver
Forum Newbie
Posts: 8
Joined: Mon Jul 08, 2002 4:38 am

upload an image file to a PostgreSQL table

Post by blueriver »

Can anybody tell me how to make a PHP script to upload an image file (mypicture.jpg for example) to a PostgreSQL table ?
User avatar
haagen
Forum Commoner
Posts: 79
Joined: Thu Jul 11, 2002 3:57 pm
Location: Sweden, Lund

Post by haagen »

Check the COPY function.
blueriver
Forum Newbie
Posts: 8
Joined: Mon Jul 08, 2002 4:38 am

Post by blueriver »

Thank you very much. Could you mind telling me more clearly, writing some code for example ? I'm a beginner
User avatar
phice
Moderator
Posts: 1416
Joined: Sat Apr 20, 2002 3:14 pm
Location: Dallas, TX
Contact:

Post by phice »

blueriver wrote:Thank you very much. Could you mind telling me more clearly, writing some code for example ? I'm a beginner
http://www.php.net/copy
Image Image
User avatar
haagen
Forum Commoner
Posts: 79
Joined: Thu Jul 11, 2002 3:57 pm
Location: Sweden, Lund

Post by haagen »

I'll email you my banc accno., then I will write a function for you!

We help you, we wont write the code for you!
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

If you just post 'look at this function' but don't tell the guy where he can find information about it (is it a SQL function, a PHP function, or something else) then it's not surprising that he has to ask for more information.

If you give a link to information and the person doesn't look at that and just says 'give me code' then that's a different story. There's no need to be rude when a user asks for an example - giving him the link to the relevant man page as phice did was a much better response.

Mac
blueriver
Forum Newbie
Posts: 8
Joined: Mon Jul 08, 2002 4:38 am

Post by blueriver »

Thanks everybody!
Post Reply