You upload the image in HTML using a form that includes the following field
<input type="file" name="fileUpload" />
After the form is submitted, you can access it with the $_POST variable as
$_POST['fileUpload']
http://www.tutorialsscripts.com/free-php-scripts/file-and-directory-script/image-upload.php
You cant upload an actual picture to MySQL, you can upload the URL but not the picture itself. You would have to upload this to your site first and then send the link to MySQL
Image Slideshow is very difficult using php. Instead store the image files in an image folder and apply slideshow to them using javascript. Here's a reference to automatic slideshow using javascript: How_do_you_create_slide_show_using_javascript_code
PHP is a server-side language, and doesn't have access to your hard-drive. You have to get the user to upload the picture to the server, first.
It depends what Database you are using. I personally use MySQL so will explain how you would do it using MySQL. You would have to create the MySQL database. I would store the image URL rather than the actual image. Then call it using PHP and a MySQL query. For Example: $sql = "SELECT * FROM Images WHERE Img_Name = 'img1'"; $query = mysql_query($sql); $array = mysql_fetch_array(query); then you would call it into HTML like so:
You need to upload the scripts to web hosting space that support PHP.
You can use the GD extension for PHP to edit image files.
PHP can create images of different sizes. It depends on a particular image.
It is possible to have an image upload object. You will simply create a class that takes the parameters required for an upload and pass it the upload resource given by the relevant $_FILES[''] superglobal. For instance one could use code like the following when calling this class: // Give the constructer the directory $uploader = new Upload("../galleryimages"); into which to upload. // The rest of the params. $notice = $uploader->uploadimage($_FILES['fileupload'], UPLOAD_TYPE_IMAGES, 220, 188, UPLOAD_KEEP_ASPECT);
http://www.mikesdotnetting.com/Article/95/Upload-and-Crop-Images-with-jQuery-JCrop-and-ASP.NET
To save an image URL in a database using PHP, you can create a table with a column to store the URL. When inserting data, you can use SQL queries with PHP to insert the URL into the database. Make sure to properly sanitize and validate the input to prevent SQL injection or other security vulnerabilities.
I have had a lot of experience with image modification modules with PHP. In order to perform image manipulation in PHP you need an image processing module installed such as GD2 or imagemagik. GD2 comes with PHP and can be installed fairly easily if it is not already installed. You can follow the PHP GD manually for the usage of these functions.
Please go to www.google.com, and search for "php upload photo script" or something alike. I'm sure you'll find somthing there.