Ajax Poll Script
php Infinite Scroll
Ajax Likes Script
Address Book Script
Form2DB
PayPal IPN + eProduct Delivery Script
Text Ad Script
Lead Follow-Up Database Script
AdFreely -Ad Board Script-
Fade-In Slideshow
Ajax Poll Admin
URL Shortening Script
This site offers mostly open source scripts that utilize PHP, Ajax, jQuery, and MySQL database. Feel free to look around, run online demo, and download scripts!
Posted by Nikita
1485014211

Good Morning.

I have a little request:

It's possible to impliment Google reCAPTCHA into the login page?
Posted by Tom
1485034542

Hi, at this moment there isn't a plan to add a capture. If you are getting unfriendly accesses to the login page, you can rename the folder name "staff" to, say "staff2"
Posted by Maximo Ramos
1484441845

Hello! Great work by the way!!

I followed these instructions but I guess it is outdated or I am doing something wrong:

http://www.phpkobo.com/article--m2072

It sure does make the email address ... Read More
Posted by Tom
1484528089

Hi,

>It sure does make the email address clickable but only in edit mode, not in search results mode.
No, the article is not for the search page. For the search page, you need to do the same on ... Read More
Posted by Sergey
2017-01-03

Hello dear Tom.
This time my question about this. Can i print random info for random users, like this? ... <?php If ($system-->$isAdmin) { ?>admin info<?php } else if ($system->$isPeter) {?>info for ... Read More
Posted by Tom
2017-01-04

Hi,

First of all, you need to identify the user logging in. This is how to obtain the user id of the user who accessed a page in the staff folder.
... Read More
Posted by Chris
2016-12-18

Regards from Switzerland! Thanks for your great application.
Is there a possibility, to display "Checkboxes" as Checkboxes in the search pane?
Currently these items are represented as "selects" ... Read More
Posted by Tom
2016-12-18

It's on purpose. As you know, a checkbox has two states:

(1) checked and (2) unchecked.

To search for records, you need three states:

(1) checked, (2) unchecked, and (3) Don't care.

That's why it ... Read More
Posted by Willem
2016-12-07

Hi Tom,
Greetings from Holland! Thanks for your script.
I thought I've seen a description how to add extra checkboxes to the frontend. Also how to add these to the Db and search on the checkbox ... Read More
Posted by Tom
2016-12-08

Hi, please read this section.
http://www.phpkobo.com/address_book.php#copy_a_field
It applies to checkbox too.
Posted by Linckon
2016-12-03

need to send email to selected users in addressbook
Posted by Tom
2016-12-04

Sorry, there is no built-in mailing feature. You have to add it yourself.
Posted by Lumen
2016-11-30

Hi Tom first off; great script, Thank you!

I was wondering if it would be possible to add characteristics to the button and if so how to go about this.

I'm selling vouchers for advantures that ... Read More
Posted by Tom
2016-12-01

Hi,

>I was wondering if it would be possible to add characteristics to the button and if so how to go about this.

It's possible. Please refer to PayPal's Buy-Now Button manual because basically it ... Read More
Posted by Alex
2016-11-28

What's up?
First, thanks for the system. He is really helping me!
I need to manage users access permissions. How can i create or change a group/user permission to make them with no write/alteration ... Read More
Posted by Tom
2016-11-28

Hi,

>I need to manage users access permissions. How can i create or change a group/user permission to make them with no write/alteration

Sorry, there aren't any built-in features for group ... Read More
Posted by Pär
2016-11-28

Worked like a charm. Thanks!
One small problem occurred. If I present a field as a text, it works fine, IF the the data is correct. If the database dont have any value on that field, the server ... Read More
Posted by Tom
2016-11-28

Then try this helper function instead.
<?php function getTextValue( $key, $val ){ return isset($val->attri['value']) ? $val->attri['value'] : ""; } ?>
It takes care of the case that there is no ... Read More
Posted by Pär
2016-11-25

style='display:none;' will remove the whole row, that's for sure.
What I would like to have is The filed name followed with its value, where the name and value should be visible, but not editable. ... Read More
Posted by Tom
2016-11-25

You can display the value of a field with this helper function
Open web/staff/common.inc.php in a text editor, and put the following line on the top, then the function will be available anywhere ... Read More
Posted by Pär
2016-11-23

Hi
Is it possible to make some of the fields locked and just presented as a plain text? There is some of the data I don't want to mess with. So when editing a client record, there should only be text ... Read More
Posted by Tom
2016-11-24

Hi, the easiest way is just hide the entire row with style='display:none;'.
For example,
... Read More
Posted by Jerry Higgins
2016-11-10

Tom... wonderful script and it works flawlessly. Thanks so much!

Was just wondering if IPN settings on PayPal's website should be turned on (enabled)?
Posted by Tom
2016-11-11

>if IPN settings on PayPal's website should be turned on (enabled)?

Yes, it should be enabled.
Posted by George
2016-11-07

Thanks for your prompt reply.
We want to make a registration form in a database with information not the user is typing and will not appear on the form.
The automatic information will be presented by ... Read More
Posted by Tom
2016-11-08

>The automatic information will be presented by different articles we have on our website example

OK then don't bother the form. You are making things more difficult.
You should write a script that ... Read More
Posted by George
2016-11-06

Hello Tom,
how to replace
<?php echo $hm->Zb('rs:def:f0008'); ?>
with:
<input type='text' name='f0008' value='<?php echo date("j/m/Y - G:i"); ?>' readonly/>

and

<?php echo $hm->Zb('rs:def:f0009'); ... Read More
Posted by Tom
2016-11-07

> <input type='text' name='f0008' value='<?php echo date("j/m/Y - G:i"); ?>' readonly/>

I think you want to display data in a different format?
If so, please read this article ... Read More
Posted by ashwinkumar
2016-11-05

is there any possibility to merge the records by company name...for example, i have companies a,b,c and there are several contacts like 123 in company a, 4,5,6 in company b and 7,8,9 in company c. ... Read More
Posted by Tom
2016-11-05

>is there any possibility to merge the records by company name

No because it requires two tables. But you can always search records by company name.
Posted by xok
2016-11-04

Hi again
After the criterion of the research,,for example i have 10 rows....on those 10 rows there is a field of a,b,c
i need to sum all the rows of A list to a new field below...or in a different ... Read More
Posted by Tom
2016-11-05

>for example i have 10 rows....on those 10 rows there is a field of a,b,c
i need to sum all the rows of A list to a new field below...or in a different ..

Oh, that's what you mean...Then no, you ... Read More
Posted by xok
2016-11-02

Hello,
It is possible to Calculate, from field A & field B as a Percentage to field C ?
or
It is possible to Calculate total ,after Search Criteria as field A .
Posted by Tom
2016-11-03

Yes, it's possible. Open the templateweb/staff/tpl.(table-name).search.inc.php and find the fields you want to calculate. e.g.
  
<?php echo $hm->Zb('rs:def:my-field-name'); ?>

You can use the ... Read More
Posted by ashwinkumar
2016-11-01

Dear Tom, I am using the script with combination of followup script. To my recent surprise the "Last modified at" is not matching the system / server time due to which there is a delay of 5.30 hrs to ... Read More
Posted by Tom
2016-11-01

>the "Last modified at" is not matching the system / server time due to which there is a delay of 5.30 hrs

You can adjust your time zone by the date_default_timezone_set function. For example,
... Read More
Posted by Sergey
2016-10-21

Hello dear Tom. As i say earlier - your script is brilliant!
Today i have another important question. How can i do searching all that i have in database by one field?
Thank you for fast reply.
Posted by Tom
2016-10-21

Hi,

>How can i do searching all that i have in database by one field?

Sorry, it's not implemented. You just have to dig into the code and implement it!
Posted by Al
2016-10-16

Hi Tom,
i copy folder (web) to my local c://site/htdoc and then start XAMP then run your code it works correctly and accept my vote but can you tell me where is database?
Posted by Tom
2016-10-16

Hi,
>can you tell me where is database?
The script saves vote counts in text files and so you don't need to set up a database.
Posted by Kotob
2016-10-11

Hello, your script works perfectly! Thank you. I want to remove search button. Is it possible???
Posted by Tom
2016-10-12

Yes, you can remove it from the template web/staff/tpl.(table-name).search.inc.php
Posted by Enes
2016-10-04

How to hide results until vote finished?
I want to show result manual
Posted by Tom
2016-10-05

>How to hide results until vote finished?

You can edit the template for the result page(tpl.result.inc.php). Feel free to hide anything in the template.
Posted by Kamil
2016-10-04

Hello,
it is possible to connect two databases into one Address Book...?
I would like to have one login and have two links to both databases (in top menu)...
Posted by Tom
2016-10-05

>it is possible to connect two databases into one Address Book...?

Sorry, there isn't a turn key solution. You just have to modify the code.
Posted by ray
2016-10-04

Hi
I downloaded the sample forms which contains these files in zip folder:
codelib
config
install
staff

After successful installation, i can access the staff area but i can't find the form itself.
Posted by Tom
2016-10-05

Hi,

> i can access the staff area but i can't find the form itself.

Address Book doesn't have the form folder but From2DB does.

Form2DB:
http://www.phpkobo.com/form2db.php
Posted by veni
2016-09-29

i had Problem to send email notification when i refresh /staff/notify_follow_up.php i got mail error like this (mail_sent=0, mail_error=1) and i also need email config details.
Posted by Tom
2016-09-29

You can find more information about the email error in the table tpl_genlog. Use phpMyAdmin to check the last record of the table.
Posted by Peter
2016-09-29

Hi,

Very nice script.

Is-it possible to ask many questions in one poll ?

Could you help me?

Best regards
Posted by Tom
2016-09-29

>Is-it possible to ask many questions in one poll ?

No, but you can put as many polls as you want in a single webpage
Posted by Sergey
2016-09-29

Thank you Tom for fast reply.
So. Right values will only "work" in tpl.table_name.detail.inc.php file? Whatever. What can i do to display not caption (left values) in tpl.table_name.search.inc.php ... Read More
Posted by Tom
2016-09-29

You can use Russian on both sides like
>Имя=Имя
>Фамилия=Фамилия
>Город=Город
Posted by Sergey
2016-09-28

Database in UTF-8, even more.. code good working from tpl.table_name.detail.inc.php (but i need to add ZB_CBF,'getTextValue'), but not working from tpl.table_name.search.inc.php (in any)
very ... Read More
Posted by Tom
2016-09-29

>Name=Имя
>LastName=Фамилия
>City=Город

The right values are a caption, so it'll not be picked up by search, but the left values will.
Posted by Sergey
2016-09-27

Hello dear Tom. I create a search button like:
<a href="?_sc=customers/&sp:def:goods=<?php echo $hm->Zb('rs:def:goods'); ?>&sp:def:model=<?php echo $hm->Zb('rs:def:model'); ?>&sp:def:colors=<?php ... Read More
Posted by Tom
2016-09-28

Hi,

>"Goods" is a select box item and have russian symbols, so when user click it the script don't search anything. But if it's in english the searching is working.

No, it shouldn't happen. I would ... Read More
Posted by Bijay
2016-09-22

Tx For reply Tom
I saw in tbl_genlog

id=1037
date=2016-09-20 17:10:40
ip address=::1
sender=NotifyFollowUp
subject=Email Error:nitinktyagi@sparkeng.in
body=EMAIL ERROR : FALSE

CEmail v1.41
FALSE ... Read More
Posted by Tom
2016-09-23

So, it didn't return any error message other than FALSE. I think there is something fundamentally wrong about it. The cause should be outside of the script configuration. Maybe PHP or mail server is ... Read More
Posted by Bijay
2016-09-20

Hey Tom ,
Your script is osm , but i had prodlen to send email notification when i refresh /staff/notify_follow_up.php i got mail error , i have smtp server and i also edit smtp detail in program . ... Read More
Posted by Tom
2016-09-21

Hi,

>i had prodlen to send email notification when i refresh /staff/notify_follow_up.php i got mail error

You can find more information about the email error in the table tpl_genlog. Use ... Read More
Posted by Mohamad
2016-09-16

in a configuration that is useful transactions via paypal
whether the necessary configuration for config.sandbox.inc.php:

define ('SANDBOX_SELLER_EMAIL', '');
define ('SANDBOX_BUYER_EMAIL', ''); ... Read More
Posted by Tom
2016-09-17

>leave empty or needs to be set?

just leave it empty. It's for those who are testing it under PayPal sandbox.
Posted by Mohamad
2016-09-15

Thanks for the script, very helpful, we understand the instructions very easily and clearly.

but we were a little confused put string to synchronize with our website, through which the path when ... Read More
Posted by Tom
2016-09-15

Hi, You don't need to configure these
define ('SIM_BUYER_EMAIL', 'email@domain.com');
define ('SIM_BUYER_FIRST_NAME', 'John');
define ('SIM_BUYER_LAST_NAME', Last Jhon ');
They are for the ... Read More
Posted by Russ
2016-09-11

Hi Tom,

Thanks for the super-speedy response on my url question below. It works perfectly. The only problem with it is that a user can overtype the search value and then access records I don't want ... Read More
Posted by Tom
2016-09-12

>he only problem with it is that a user can overtype the search value

How about hiding it with "display:none" like this?
... Read More
Posted by Rick
2016-09-09

Hi, Is it possible to make the poll show results with differing content.

Example:
User A clicks on poll A, response X = results of poll A appear with additional content 1. User B clicks on poll A, ... Read More
Posted by Tom
2016-09-10

Hi,

>Is it possible to make the poll show results with differing content.

I'm still not sure about the details of your spec but it sounds possible. Since it's open source, feel free to modify it!
Posted by Russ
2016-09-07

Hi Tom,

Me again!

How do I make the search on some fields "exact"?

For instance I have a field called "District" and acceptable values are 1 - 25.

If I search on "2" I get 2, 20, 21, 22, 23, 24, ... Read More
Posted by Tom
2016-09-09

To make the search on a field "exact", first open web/codelib/asc/df.fl.(table-name).inc.php and find the field definition array. The example below is for the first_name field.
... Read More
Posted by Russ
2016-09-07

Hi Tom, This is the most amazing tool - and has enabled me to look much cleverer than I really am! :-)

I have created an address database of around 8,000 members. One of the fields in the database ... Read More
Posted by Tom
2016-09-09

>My problem would be solved if I could pass a MySQL *select* statement via the url to select a range of records based on District.

You can specify search criteria in url like this:
... Read More
Posted by Rick
2016-08-29

I notice in the Gradient CSS you have brown gradient and blue gradient. Why is their not a choice in the Admin Edit Poll section for brown or blue. Where would I change to brown if I wanted it ... Read More
Posted by Tom
2016-08-30

Yes, it's a good idea! Thank you for your feedback!
Posted by Ken Anklovitch
2016-08-25

Hi Tom
Is there any chance that I can make the email a clickable field to send emails and is there any way to convert to a responsive script for phones?

Thanks very much Tom
Posted by Tom
2016-08-26

Hi,

To make the email a clickable field, please see this article:
http://www.phpkobo.com/article--m2072

>convert to a responsive script
Well, it's possible but there isn't a quick way. You just ... Read More
Posted by Ken Anklovitch
2016-08-22

Forget my previous question Tom, I found it.
Posted by Tom
2016-08-22

ok!
Posted by Ken Anklovitch
2016-08-22

I haven't updated my custom Address script in quite awhile so I am a bit rusty. Which file generates the Login page, I would like to customize the look if possible. I use the script everyday, all ... Read More
Posted by Robert Graham
2016-08-20

Thanks for your answer it was easy to do and works like a champ. thanks
Posted by Robert Graham
2016-08-18

I have 2 questions for you. First now can I have a default field answer? For example 95% of the people in my data base will share the same City, State and Zip. Having to a default answer will save ... Read More
Posted by Tom
2016-08-19

To set a default value, open web/codelib/df.fl.(table-name).inc.php and find the field definition array you want to edit. For example, this is the field definition of first_name :
... Read More
Posted by Laris
2016-08-10

Thx a lot for quick answer and your script !!!!
I have modify a severals files and the Log Info date don't work!
In fact, the date of "Last modified at" and "created at" returns a blank field (NULL). ... Read More
Posted by Tom
2016-08-11

>In fact, the date of "Last modified at" and "created at" returns a blank field (NULL). What are files(all) to be restored

OK, maybe it's late but my suggestion is take a backup of the script ... Read More
Posted by ashwinkumar
2016-08-10

Dear Tom,
I use your script to store several contacts from many companies. For example say I have 10 contacts from company AAA and 15 contacts from company BBB. currently when i open the address book ... Read More
Posted by Tom
2016-08-11

I think the closest solution is adding a selection box manually filled with company names. I know it's not exactly the same as your spec but it's something you can do without programming.
Posted by Laris
2016-08-09

Hi,
How to change the date format.
In fact, i wish to change "2010-11-02" to "02/11/2010"
Posted by Tom
2016-08-09

Hi,

>i wish to change "2010-11-02" to "02/11/2010"

Suppose you have the "birthday" field in the template, web/staff/tpl.(table-name).search.inc.php like shown below:
... Read More
Posted by Jeremy
2016-08-08

Hi Tom,
I wanted to know if it's possible to have linked dropboxes. For example, let's say we have a first dropbox named State (including i.e, Florida, California). The second dropbox, contains ... Read More
Posted by Tom
2016-08-08

>I wanted to know if it's possible to have linked dropboxes.

Yes, you can by adding javascript code. The code is not part of Address Book
Script so you have to write it yourself.
Posted by Chris
2016-08-07

Hello, is it possible to use another style sheet in template?
Posted by Tom
2016-08-08

>is it possible to use another style sheet in template?

Yes
Posted by Didi
2016-08-02

Hi Tom,

what file can i add new field 'Position'?
Thanks.
Posted by Tom
2016-08-03

To add a new field, please follow this instruction:
http://www.phpkobo.com/address_book.php#copy_a_field
Posted by Didi
2016-08-01

Hi Tom,

first i want to say Thanks for answer 'Dropdown/Combobox'.

And i have 1 question again, can we add new field? Let say 'Position' will be used?

Please advice and thank you.
Posted by Tom
2016-08-02

> can we add new field?

Yes.

>Let say 'Position' will be used?

You can use any name for a new field if that's what you meant.