Category: php

.

Storing Image Url Location in Mysql Database

Storing images in the Mysql Database using php can be done by encoding the whole image with a function called base64encode() or you can simply create a table with a field that stores the URL and filename of the image file that you want to retrieve. Using the latter method is faster, and relieves your server from the stress of streaming jpg image, bitmap images, and other image formats that php supports.

Example of storing whole image

The idea is simple really. You just store the location as a variable char in your databases and when you retrieve it is location with a php script, you incorporate the image location into your html using php.

(will add script example soon)

Author: D.Shaun Morgan

how to upload images and files php Upload Images to Webserver HTML Form PHP Function # UPLOAD FILE function upload_file(){ echo '

how to turn variable value into variable name Variable Variables in PHP Every so often when you are writing a php file, we all run into a situation where we would like for the name of the string that is inside

what is php Explanation of PHP Basic Syntax --New to PHP Php is a language that is very much like writing c. The best feature of PHP versus c is that it is designed pri

how to write html form PHP php When learning PHP to build a website, one of the very first things that any newcomer, or beginner needs to learn is how to use HTML or XHTML (both will mean the same for this tutorial.) fo

php passing variables php Pass Variables from One Page to Another -- PHP Author: D.Shaun Morgan Tutorial Outline : Passing PHP variables with $_

.
 

Leave a Comment

Storing-image-locations-mysql

Name:      | Email:      | Website:

Comment:


captcha

Enter The Above Security Code: