Tag Archives: Client Side Validation

Database fundamentals : How does RDBMS’s support for multi-user environments enhance its advantages over other database systems?

Database fundamentals : RDBMS systems are designed to handle multiple users simultaneously. This support for multi-user environments enhances data integrity by ensuring that concurrent transactions do not interfere with each other. It provides concurrent access control, allowing multiple users to work with the data concurrently while maintaining the database’s integrity and consistency.

How to Remove Characters Except Numbers from a String ?

Following Code will remove all character,special characters including space.   $givenNumber = "1245fdfd8454D FDFDF434 3$#$#%";   $testingNumber = preg_replace('[D]’, ”, $givenNumber);   echo $testingNumber;   Output is : 124584544343 $givenNumber = "1245fdfd8454D FDFDF434 3$#$#%"; $testingNumber = preg_replace(‘[D]’, ”, $givenNumber); echo $testingNumber; Output is : 124584544343

Validate Email in PHP

Use this function to validate email in PHP. Pass your email in this function by calling it.if  it returns false then email is not valid else valid. function checkEmail($email_address = null){ if(preg_match("/^[a-zA-Z]*w+(.w+)*@w+(.[0-9a-zA-Z]+)*.[a-zA-Z]{2,4}$/", $email_address) === 0){ return false; } else{ return true; } }function checkEmail($email_address = null){ if(preg_match("/^[a-zA-Z]*w+(.w+)*@w+(.[0-9a-zA-Z]+)*.[a-zA-Z]{2,4}$/", $email_address) === 0){ return false; } else{ return… Read More »