(Solved) - Put watermark on image that load from DB - php
<p>I had the below code that load image from DB. There are more than 600 rows of image has been inserted into the DB. I need the script that can perform these action:</p>

<p>Step 1) Load the image from DB
Step 2) process the image by putting the watermark
Step 3) Output the image to the browser.</p>

<p>I had the below code, that load and show the image. but I don't have any idea how to do the watermark.
    

<pre><code>$dbconn = @mysql_connect($mysql_server,$mysql_manager_id,$mysql_manager_pw) or exit("SERVER Unavailable"); 
@mysql_select_db($mysql_database,$dbconn) or exit("DB Unavailable"); 

$sql = "SELECT type,content FROM upload WHERE id=". $_GET["imgid"]; 

$result = @mysql_query($sql,$dbconn) or exit("QUERY FAILED!"); 

$contenttype = @mysql_result($result,0,"type"); 
$image = @mysql_result($result,0,"content"); 


header("Content-type: $contenttype"); 
echo $image;

mysql_close($dbconn); 

?&gt;
</code></pre>

<p>Please help...</p>
