Journal

Journal

Those who need it to accomplish some task or goal.

Ad comes here
Ad comes here
Ad comes here
Ad comes here

How to run custom MySql query in Magento2 and fetch data?

//Connection with magento2 database

$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$resource = $objectManager->get('Magento\Framework\App\ResourceConnection');
$connection = $resource->getConnection('core_read');

//Now execute your mysql query

$fetch="SELECT * FROM catalog_product_entity";

$result = $connection->fetchAll($fetch);

?>

Ad comes here
Ad comes here
Ad comes here

How to validate Alpha Numeric, special charecter and minimum 8digit password validation in CodeIgnetter ?

CodeIgniter Strong Password Validation:

public function forgotpassword(){    
        if(isset($_POST['submit']) && $_POST['submit']=='Submit'){    
            $valid = array(
                    array(
                    'field' => 'userpassword',
                    'label' => 'User

Ad comes here
Ad comes here
Ad comes here
Error's and solution's