- USBwebserver or any other tools Xampp etc.
1) create a new folder [images] inside root folder
2) inside images folder, insert any picture you would like to store into database. say, i use below picture and name it arrow.jpg (use simple/short name)
3) Sign in into PHP Admin, Username: root , Password: usbw
4) create new database , and name it 'image'
5) inside image database, create a table 'img' with 2 columns .
- name: id - type: INT - length: 3 - AI: tick
- name: path - type: VARCHAR - length: 200
No comments:
Post a Comment