Follow Me

Archive | PHP RSS feed for this section

Dynamic jquery multiple image upload with delete and limit features

5. September 2010

0 Comments

Hello Friends, Few days back I received request from one of the user of blog to add two extra features to our existing multiple image upload script. 1 – How To add limit for upload images. 2 – How To add remove link for each image. I have added both features in existing image upload script. It is not [...]

Continue reading...

How to convert number to word in javascript

2. August 2010

2 Comments

Today I am sharing number to text convert script that simply input number and produce its wordy counterparts. It is the most simple script and easy to implement in the project. Example : Suppose you want to make ‘ 12345 ‘ read like ‘ twelve thousand three hundred forty five ‘ , Enter your number in text [...]

Continue reading...

Dynamic multiple image upload using jquery

27. June 2010

2 Comments

Friends, Today I am posting multiple image upload using jquery in a php form. It is a dynamic script that will upload image without refresh and stored temporarily in the database. It will finally set in database when we will submit our main form. Here is the code for our form - <table width="100%" align="center" border="0"> <form method="post" [...]

Continue reading...

How to calculate number of days between two dates

19. June 2010

0 Comments

Following are the script that calculate number of days between two dates. I used this script in my recent project work. I need to run a cron file to all members of the site that haven’t logged into site more than 7 days. I created this script for sending email if log in time of [...]

Continue reading...

how to add background color onmouseover using jquery

18. June 2010

0 Comments

Hi Friends, In my recent project work, I need to add background color on table row (even rows) on mouse over. I used jquery for this. Its very easy to do that. You need to call two java script function – one for adding background color onmouseover and second for returning back to original background color [...]

Continue reading...

Google map demo using php class

9. June 2010

0 Comments

Hi Guys, Today I am posting google map demo using php api. Few months back I need to develop a google map in php for my client therefore I google and found some complex methods of generating google map.  There was some script that needs latitude, longitude for gmap. All I wanted to do is to [...]

Continue reading...

Jquery data display from database

2. June 2010

0 Comments

Hi Guys, I am posting simple example of fetching data from database using jquery. This code display password stored in database using jquery instantly. You just need to call simple jquery function and it will return password as a response text. First, you will create index.php in which you will copy this code. Set database connections on [...]

Continue reading...

Conversion bytes to GB/MB/KB in php

31. May 2010

0 Comments

Simple calculation to convert bytes to gb, mb and kb. <?php $byte=1073741824; if ($byte >= 1073741824) $byte_gb = round($byte / 1073741824 * 100) / 100 . " GB"; if ($byte >= 1048576) $byte_mb = round($byte / 1048576 * 100) / 100 . " MB"; if ($byte >= 1024) $byte_kb = round($byte / 1024 * 100) / 100 . " [...]

Continue reading...

Simple mail attachment script in php

23. May 2010

0 Comments

Hi Friends, Introducing simple mail attachment script in php. It simply gather posted data ie name, email and file attached in a form and simple email function send an email with attached file. You have to just replace your posted username, email and file attachment name variables within this script. This script useful in contact us [...]

Continue reading...

How to calculate days remaining in date of birth

22. May 2010

0 Comments

How to calculate days remaining in date of birth from current time? One day I need to find how many days remain in someone’s date of birth. Therefore I wrote this small script for calculating how many days remain in date of birth. It will display no. of days, for this I used dateDiff function. [...]

Continue reading...