CariDotMy

 Forgot password?
 Register

ADVERTISEMENT

View: 3021|Reply: 3

Simpan gambar dalam DataBase guna Dreamweaver

[Copy link]
Post time 6-10-2011 01:12 AM | Show all posts |Read mode
tau x mcm mana nk simpan gmbar guna php.. sebab setahu aq, gmbar xblh simpan kn dalam database... ada x cara lain?
Reply

Use magic Report


ADVERTISEMENT


Post time 6-10-2011 09:35 AM | Show all posts
memang takleh simpan gambar dalam database pon. cuma bleh simpan lokasi file tu je kat mana. cth time upload tu, kita setkan lokasi nak upload ke c:\image

pastu dalam database, kita bleh simpan data camni dalam field image. "c:\image\gambar1.jpg"

terpulang kat code la camne. sama ada nak simpan nama fail je ke. tapi time nak panggil balik fail tu, kita letak hardcode lokasi terus. cth

  1. <a href="c:\gambar\<?php echo '$namafail';?>">Gambar</a>
Copy the Code
Reply

Use magic Report

Post time 6-10-2011 08:47 PM | Show all posts
Hai... 1st post... Xpasti ttg mysql... Tp kalo dlm mssql boleh je...
samada nk store guna datatype jenis  "image"  ataupon guna datatype jenis "bit"
Tp kalo mysql mmg xde datatype jenis tuh
Guna cara alienzdator tuh pon xpe asal objektif tercapai..
Simpan phisical file je. saveas.servermappath("")

hai.. Sy dtg nk prepare for fyp  kelak. Salam jengok2 dulu.
Reply

Use magic Report

 Author| Post time 20-11-2011 07:13 PM | Show all posts
ok2.. thnks guys.. tgh mencuba skrang nie..
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

 

ADVERTISEMENT



 

ADVERTISEMENT


 


ADVERTISEMENT
Follow Us

ADVERTISEMENT


Mobile|Archiver|Mobile*default|About Us|CariDotMy

9-1-2025 10:17 PM GMT+8 , Processed in 0.078925 second(s), 17 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

Quick Reply To Top Return to the list