How to use Ajax to verify data on a DB ?


Posted on 16th Feb 2014 07:03 pm by admin

Hello everyone, well i want to know how to check a value if it exists or not on a Data base and capturing this without making postback (no click on a button or other control) ofcourse by using Ajax, I explain my self:I have a DB which contains a table called " TblClient" composed of the following columns:ID_Client
Name_Client
Tel_Clientand of course a form containing 2 textbox and a button to validate the seizure of the new customer:Box_Client
Box_Tel
my question consists with how to make a checking of the Telephone nulber of such as of the seizure (it's mean to the moment of seizure there is a synchronization with the TblClient table which checks if this number already exists in this base or not) and not by making a postback, I know that is possible to do using Ajax, but I do not see how. can you help me to resolve this topic ??thank's a lot

No comments posted yet

Your Answer:

Login to answer
53 Like 36 Dislike
Previous forums Next forums
Other forums

rename the file
File.txt

Code: ***DOCUMENT***
..DN:
000044255
..CB:
..SN:
..PY:
2009
..E

Load file in PHP
I have 2 files. The first is a PHP generated XML file that's dependent by 2 inputs. The second is a

need help with date function
i have following form for date

Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01

Dynamic links in an include file
I am working on a small piece of code that counts records from a database and displays the result to

Images in email problem
I found this script for sending emails, it works but if the email has <img src="image.jp

Will an XHTML DOCTYPE interfere with my PHP if I'm not experienced enough?
I've read this article here: http://friendlybit.com/html/why-xhtml-is-a-bad-idea/

In a nutshe

Using system() and bringing back the results
I am aware that you can use system() within PHP to execute system commands, but I was wondering if t

Wierd echo error?
Hi, i got the most wierd php error ever and i don't know why..
Code: echo "<t

Captcha problem users just refresh and it will let them auto submit again
Users will just re submit and not have to enter the new captcha.. ? Lol but if i refresh the page, t

Empty text file when there is over XXXX lines of text.

define("RANDOM_FILE","/public_html/random.txt");
$randomEntry = "

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash