DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   PHP (http://www.daniweb.com/forums/forum17.html)
-   -   Adding Image (Path) into MySql Database (http://www.daniweb.com/forums/thread85764.html)

tanha Aug 9th, 2007 4:48 am
Adding Image (Path) into MySql Database
 
Hello everybody,
firstly I am new in PHP, and I use the WAMP5 tools which has the following features:
i) Apache 2.2.4 (SERVER)
ii) PHP 5.2.3 + PECL
iii) SQLitemanager
iv) MySQL 5.0.41
v) Phpmyadmin
I have a table named 'tblStudent' with four fields as follow properties:
1. stID int not null auto_increment
2. stFirstName varchar(30) not null
3. stLastName varchar(30) not null
4. stPhoto varchar(250)
what I want:
after filling out the fields and also I need a button which browse the photo path, and when clicking on submit button, then everything goes into database, and also another page appears with showing the new entry data and picture with successfully completed message.

NOTE: should be mentioned, that I have a folder where I put my php files in the root, I need all the photo stores there with the name stID...
and as I told you, I am new with php, please guide me as you see suitable

tanha Aug 9th, 2007 10:40 am
Re: Adding Image (Path) into MySql Database
 
Any one here help me through this please...


All times are GMT -4. The time now is 1:56 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC