View Full Version : how can i save image
jackavin
10-08-2007, 04:11 PM
how can i save image link to database please help i'm newby thx
Demonicman
10-08-2007, 04:56 PM
$link=print"http://www.dynamicdrive.com";
mysql_query("INSERT INTO linktable (link) values ('$link')")
that is assuming you have a table called linktable and a row called link in that table
jackavin
10-08-2007, 07:32 PM
I have do a form
<input name="aimage" type="file" class="bottomsmall" size="40" />
when i use
$doc= $_SERVER['DOCUMENT_ROOT'];
$aimg= str_replace($doc,"..",str_replace("\\","/",trim($aimage)));
for put in mysql
it report
C:/WINDOWS/TEMP/php22F.tmp
in database
any idea for save image link
vBulletin® v3.8.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.