Upload
trinhcong
View
239
Download
0
Embed Size (px)
Citation preview
CRUD- Image Upload Database
Go button click
Save button click profilepic Table
IDE file add
xampp control panel Apachee MySQL connect
create.php open
Browser open Address
http://localhost:8080/AtomicProjectP4/views/SEIP1020/ProfilePicture/create.php enter
Output
data select
store.php add
http://localhost:8080/AtomicProjectP4/views/SEIP1020/ProfilePicture/create.php submit button
output
store.php file code output
create.php file input submit
http://localhost:8080/AtomicProjectP4/views/SEIP1020/ProfilePicture/create.php
localhost:8080/AtomicProjectP4/views/SEIP1020/ProfilePicture/store.php
output
store.php file code add
project folder Image
ImageUploader.php file properties method add
ImageUploader.php file prepare method
Message.php file
Utility.php file
store.php input data, database a store
http://localhost:8080/AtomicProjectP4/views/SEIP1020/ProfilePicture/create.php submit button
input data, database store
phpmyadmin input data successfully insert
http://localhost:8080/AtomicProjectP4/views/SEIP1020/ProfilePicture/create.php
input Image Image
ImageUploader.php file index method
index code
http://localhost:8080/AtomicProjectP4/views/SEIP1020/ProfilePicture/index.php
insert data
individually ImageUploader.php file show method add
store.php file code add
http://localhost:8080/AtomicProjectP4/views/SEIP1020/ProfilePicture/index.php
http://localhost:8080/AtomicProjectP4/views/SEIP1020/ProfilePicture/index.php View link
View
http://localhost:8080/AtomicProjectP4/views/SEIP1020/ProfilePicture/show.php?id=1
output
http://localhost:8080/AtomicProjectP4/views/SEIP1020/ProfilePicture/index.phphttp://localhost:8080/AtomicProjectP4/views/SEIP1020/ProfilePicture/show.php?id=1
input update ImageUploader,php file
edit.php page
update.php file
Code working change
value change
user delete ImageUploader.php delete
delete.php file code
index.php page delete
2 ID delete