Blog Archives

How to validate sunday date or skip sunday date in php

Hi Friends I was working on yii2 framework project in which i as working on delivery date in which it should skip shipping or delivery date on sunday as saturday is also working day,so i came up with idea to

Tagged with: , , , , , , , ,
Posted in php

Find mysql_query issue

Paste the code below mysql_query or mysqli_query to find correct issue,recently i used it in project and found that table itself not exited in database. if (!$res) { printf(“Error: %s\n”, mysqli_error($this->conn)); exit(); }

Tagged with: , , , , , ,
Posted in php

Points to Remember in Yii

1)Yii application is build using Model-View-Controller(MVC) architecture. 2) Yii implements two kinds of model form model (CFormModel class) and active records(CActiveRecord class),which are extended by same base class cmodel. 3)form model represent the logic for form fields validation and bussiness logic.

Tagged with: , , , , , ,
Posted in php, yii framework

How configure php in environment varible for windows?

To configure php in environment variable for windows,just run below code with current wamp path in command prompt: SET PATH=%PATH%;C:\your\wamp\path\php C:\>php -a Interactive mode enabled <?php echo ‘pppp’; echo “hello world”; ?> ^Z echo ‘pppp’; hello world to finish the

Tagged with: , , , , , ,
Posted in php

speed test to class with public variable and function vs static variable and function

Currently refreshing the oops concept in php as i worked in drupal cms which almost functional oriented derived cms. public variable and function inside class: /**  *  * Used to list the brands in the car  * class:car  * function:carlist()

Tagged with: , , , , , , ,
Posted in php
Follow Tutorial on
May 2018
« Apr    
Follow me on Twitter
Blog Stats
  • 78,424 hits