Posts Tagged ‘PHP’

revision : upload file and image

Wednesday, February 3rd, 2010

I am sorry when I check back my previous tutorial on uploading files and images, there are some mistakes that should be fixed in its database, and there are some parts that I have not explained clearly. Now I will try to explain again some of which I consider important.

  1. On these tutorials you can only upload image files that have extensions gif,  jpeg and png. if you upload a file extension other than the image file, the file will not be able to upload or error.
  2. create a folder image and article to store files uploaded.

download this sourcecode , demo this application

form-upload-extjs

Create bar chart using extjs and php

Sunday, January 31st, 2010

In this tutorial, I will give examples of the usage of bar chart by using extjs and php. Generally, bar chart consists of the x-axis and y-axis in this tutorial I will provide a case study about the number of sales in each month, the x-axis represents the name of the month, while the y-axis represents the total sales of each month.

we first create a database with the name of “chart” after that create a table with a “sale”, tables of contents consists of two columns of “month” and “sumOfsel”, for more details on the source code can be seen below.

CREATE TABLE IF NOT EXISTS `sale` (

 `month` int(11) NOT NULL,

 `sumOfsel` int(11) NOT NULL

) ENGINE=MyISAM  DEFAULT CHARSET=latin1;

after create tables, enter data into a table, like the example below:

INSERT INTO `penjualan` (`month`, `sumOfsel`) VALUES

(0, 1400),

(2, 2000),

(3, 4000),

(4, 8000),

(0, 30000),

(1, 5000),

(5, 14686);

(more…)

Login Extjs: Confirm Password

Friday, February 27th, 2009

One way to secure our website from outside attack is to create a login form. In this section we will learn about how to make login form using extjs and php how to make a session to restrict the access . In this tutorial i will create login form have confirm password. I get inspiration from this website www.extjs.com.

(more…)

Tutorial Extjs: Download File

Saturday, February 21st, 2009

I think this tutorial is easy, and maybe many programmer alredy know how to make it.

Main point of this tutorial is how to get file id in the grid. After that, we call the name of the file that we will to download.

In this section, we use the database from the previous tutorial: Upload file and image using extjs, so here we will try to download a file that was saved in the previous tutorial: upload file and image using extjs

(more…)

Tutorial Extjs: Upload File and Image

Friday, February 20th, 2009

Today, we will learn about how to make upload form using Extjs and php such as image (photo) upload and text file (article) upload. My opinion, upload form is very important on website, for example when saving the data to database such as guestbook and submitting article. I think this tutorial have been created by another person, but here i will try to explain it by my self, you can also look this tutorial on extjs.com. i am using combination of extjs and php.

(more…)