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 Silvio
1488027692

Hello Tom,

In order to protect the content of "products" folder, I've placed it on the server's root but unfortunately I can't find a working path configuration (config.products.inc.php) and the ... Read More
Posted by murat
1487607048

thank you very much tom , it works , now i can make a call from asterisk when i click on search result
you really should add a donate button to your site.
you are saving alot of people s time ... Read More
Posted by Tom
1487749087

You are welcome!
Posted by murat
1487526905

Hello , thank you for the great utilities which you share with people

i installed your addressbook onto an asterisk system based on centos
freepbx also uses mysql so easily i installed on pbx
now ... Read More
Posted by Tom
1487598091

Hi,

>only what i couldnt do is i need to get current username too

If you mean the username of a user who is currently loggin in
then you can get it with the following code:
... Read More
Posted by Silvio
1487427679

Working perfectly, thank you again Tom!
I should add your PayPal "Donate" button :)
Posted by Tom
1487492544

You are welcome :)
Posted by Silvio
2017-02-17

Hi Tom,

I'm trying to customize the e-mail message with my logo but I don't know where it must be located. It's now inside the products folder, so I've added into the <body> of config.txt this line: ... Read More
Posted by Tom
2017-02-18

>src="/products/logo1.gif"

The url should start with "http://"
And the image doesn't have to be in the script folder. You can put it anywhere.
Posted by Silvio
2017-02-16

Thank you so much Tom, it was the reason!
Posted by Tom
2017-02-18

Great!
Posted by Silvio
2017-02-15

Hi Tom,

I've created a working version without accents, saved in ANSI.
Now, seeing your reply, I've saved it in UTF-8 but the simulator doesn't recognize it anymore.
Posted by Tom
2017-02-16

>I've saved it in UTF-8 but the simulator doesn't recognize it anymore.

Maybe, you saved it in UTF-8 with bom? ... Read More
Posted by Silvio
2017-02-14

Hi Tom,

The issue is fixed, I found a solution to include your full script into my page.
However I experienced again an issue with your simulator sending the e-mail message, the reason is french ... Read More
Posted by Tom
2017-02-15

>the reason is french accents that can't be used, except inside item_name (product title), what can I do?

Mails are encoded in UTF-8, so it should be able to email in any languages. You need to save ... Read More
Posted by Silvio
2017-02-09

Hi Tom,

All right, I found a little syntax error in my config, now it's working perfectly, wonderful scrypt, thank you so much Tom!
I was wondering to separate the button code from the rest of your ... Read More
Posted by Tom
2017-02-10

Hi,

>Any suggestion to run your scrypt from the button (shortest code) placed into a separate directory?

I don't understand what you meant by "placed into a separate directory." You can place it ... Read More
Posted by Silvio
2017-02-02

Hi Tom,

I'm not sure to understand your instructions (config.email.inc.php):

// If your email server requires SMTP Authentication,
// enable the following three lines, "Auth", "Username", and
// ... Read More
Posted by Tom
2017-02-03

>My smtp server requires auth. so is this syntax right?
>Auth=LOGIN
>Username=sender@xyz.com
>Password=12345

The syntax is correct. (but of course, the value may be wrong)

>Also, concerning ... Read More
Posted by Silvio
2017-01-31

Hi Tom,

Thank you so much for your script, very useful!
I've carefully followed your installation instruction and uploaded your "web" folder, keeping his original name, to the root of my domain but ... Read More
Posted by Tom
2017-02-02

Hi Silvio,

>email error: 535 Incorrect authentication data

It means the mail server couldn't authenticate you.
Please make sure the username and password you entered for the mail server in the ... Read More
Posted by Jan Wiekens
2017-01-29

Hello, your script works perfectly!
I have one question.
is it possible to make some fields bigger? I have a field called "note" and that field is very short.
Is it possible to make this lager?
Posted by Tom
2017-01-30

Hi, you can format textarea (or any HTML elements) by surrounding with a div or span tag. In the following example, a textarea is surrounded by <span class="my-style"></span>
... Read More
Posted by Alex
2017-01-26

Hello Tom and Thanks for your script.

I need to edit multiple records same time .
For example i whant to edit the "home zip" field at the same time for 10 customers.

Howe can i do that ?


Thank ... Read More
Posted by Tom
2017-01-27

Hi,
>I need to edit multiple records same time
Sorry, the script does not have the feature.
Posted by Nikita
2017-01-21

Good Morning.

I have a little request:

It's possible to impliment Google reCAPTCHA into the login page?
Posted by Tom
2017-01-21

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
2017-01-14

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
2017-01-15

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