Dave Hollingworth

Results 97 comments of Dave Hollingworth

Did the email you supplied already exist in the database? Could there be a record with an empty or null value for the email? (this counts as a unique value)

@admirmehicic What code are you using to check to see if the database contains a record for the supplied email? That line of code prints out a JSON array with...

@admirmehicic It looks like the server is configured to not allow JS requests by default - try adding this to the top of your PHP script: `header("Access-Control-Allow-Origin: *");`

Can you call the PHP script that the JS is calling directly from the browser? E.g. entering something like this in the browser's address bar: localhost/[email protected]

If you're just getting a blank page, then an error is occurring but the details of it aren't being displayed. Have a look [here](https://youtube.com/shorts/K4TMD0mLOJY?feature=share) for more details.

@Divisha2828 Please see [this issue](https://github.com/daveh/php-signup-login/issues/5) to see if any of the fixes there work for you.

It looks like there's a single quote missing in your SQL after `WHERE EXISTS email = '%s`

Yep: https://youtu.be/O3ewos-_iME

@Yivani Your code looks ok - I would debug it by calling the validate-email.php script directly, and inserting debugging statements to see what value is being returned. If it still...