Jump to content

IF Statements


ec

Recommended Posts

How could I do

if phone number is not missing, it must be 13 digits long otherwise errflag comes on?

 

I've attempted several ways but none have worked  :-[

 

This is what I have for the 13 digits part of the qry...

if(strlen($phone) <> 13) {
    $errmsg_arr[] = 'Phone Number must be 13 digits long';
    $errflag = true;
}	

 

Link to comment
https://forums.phpfreaks.com/topic/98389-if-statements/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.