Sachin circket era is end up with an incredible test victory at Mumbai Wangade stadium. We salute the legend of cricket,the god of cricket. He is a man with cute smile in his face always. The real gentle man with great talent. The people knows him beyond the cricket as real human. sachin is always…
Socialengine User Friendship check function
Use this function to check the logged user is a friend of any other user. Here Viewer is logged user object and user is the one who want to check. $viewer->membership()->getRow($user);
How to simply create a zend framework project?
I’m writing this tutorial based on LAMP(Linux Apache Mysql PHP) development environment. You can create sample php zendframework project using terminal. For that type the following command smart@smarttips-System-Product-Name:~$ zf crate project /var/www/testzend If this package is not previously installed then will show this message The program ‘zf’ is currently not installed. You can install it…
How to print all sessions currently set in PHP
Using the following following code to get all sessions in current working environment echo ‘<pre>’;var_dump($_SESSION);echo ‘</pre>’;
mysql concatenate update query
We can append datat to the existing data in mysql field. Column name is email and value is “info@smarttips.com” UPDATE `engine4_users` SET email = CONCAT( email, ‘_test’ ) After the query execution the _test dat will be appended to email Output:info@smarttips.com_test
