Check if user exists in database (form)

pennyhornet

New Member
I have a script which allows users to sign up, which imports data into a MySQL table.user_availability.php
http://pastebin.com/PSRndXbqnumber.js
http://pastebin.com/iYAPuwN7This script will tell the user if that number is present in the table. However it continually says its not in the table despite it being in there (looking through PMA). I have tried a few things, like var_dump etc to check the query and it returns fine. I've also tried adding "no" to both the if/else string and it's the same. With that in mind id it would seem the JS is at fault?Do I have an error in my code? Cheers
 
Back
Top