Hi,

i have a problem,
I'd like to load a file mediumblob from DB mysqli () and save it on directory ("../uploads") on a server, using a php page.

Can you help me ????

:sad:

Hi,

i have a problem,
I'd like to load a file mediumblob from DB mysqli () and save it on directory ("../uploads") on a server, using a php page.

Can you help me ????

:sad:

First you need to start by learning how to use mysqli with PHP.

See: http://ca.php.net/manual/en/ref.mysqli.php

Then once you are confortable with it, select your meduimblob cell. Put it in a variable(or something) then use function fopen() to open your file in ../Uploads, then function fwrite() to write the cell contents to the file.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.