MySQL Forums
Forum List  »  PHP

Re: How to get PHP to test for NUL and space and INSERT into mySQL
Posted by: Arthur Chan
Date: August 31, 2018 09:52PM

For anyone who is still following this thread, this works for me:

if(isset($_GET['cFlag']) && strtoupper($_GET['cFlag'])=='Y'){$cFlag = 'Y';}else{$cFlag='N';};

Also, these document are good reads:
http://kunststube.net/isset/
https://secure.php.net/manual/en/function.empty.php

Options: ReplyQuote


Subject
Written By
Posted
Re: How to get PHP to test for NUL and space and INSERT into mySQL
August 31, 2018 09:52PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.