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 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 make money online php Making Money on the Internet Sign up for this series of free money making articles Name:

php example post array php Visual example of how PHP handles the super-global array variable "$_POST" Author: D.Shaun Morgan Versions and Skill Level

php arrays php Passing arrays to another page Author: D.Shaun Morgan Versions and Skill Level PHP Version - PHP 5x Reader skill level

.
 

Leave a Comment

Storing-image-locations-mysql

Name:      | Email:      | Website:

Comment:


captcha

Enter The Above Security Code: