Log in

View Full Version : how can i save image



jackavin
10-08-2007, 03:11 PM
how can i save image link to database please help i'm newby thx

Demonicman
10-08-2007, 03: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, 06: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