How to save image using PHP MySQL

April 20, 2009

Posted by:

Category: PHP

Tags: ,

How to save image using PHP MySQL

I have very simple way to store image in mysql databases. I will describe how to save images in MySQL and display it using PHP.

The first step, we need to make a MySQL databases to store our images data. Make a database called “images” on your MySQL  database, then create a table called “imagesdata”.

CREATE TABLE `imagesdata` (
`id` int(6) NOT NULL AUTO_INCREMENT,
`image` longtext NOT NULL,
`dates` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

Solving PHPMYADMIN import file size

April 1, 2009

Posted by:

Category: Linux

Tags: , , ,

Solving PHPMYADMIN import file size

phpmyadmin-logoI got a problem when trying to import SQL file using PHPMyAdmin. my PHPMyAdmin allow import file with max size 2M, actually my SQL file has 16MB. You can solve this problem by editing the php.ini file.

If you running linux with apache2 and PHP 5,  use command sudo gedit /etc/php5/apache2/php.ini

If you have running XAMPP, \xampp\apache\bin\php.ini

Access mdb to MySql Free

February 20, 2009

Posted by:

Category: Blog, Story, Tips

Tags: , ,

Access mdb to MySql Free

access to mysql

Today I have a job to convert database of  system production company from access  mdb to mysql database.  Then I do a search on the internet, and I found a very good tools.  This program is able to convert a database from access to mysql. Just select your mdb file, and type your mysql database name. The best part of this program is, it’s FREE. You can download here.