Archive

Tag Interview

Creating Contact us page in Drupal 7

Posted on September 10, 2014 by Suresh Kamrushi in PHP

+16-2 Following are the steps to enable, configure and adding Contact us form: Enabling Contact module: Login to Admin and click on “Modules” link from …

Maximum Number of Columns Per Table – Mysql

Posted on January 31, 2014 by Suresh Kamrushi in Mysql

The maximum row size constrains the number of columns because the total width of all columns cannot exceed this size. For example, utf8 characters require up to three bytes per character, so for a CHAR(255) CHARACTER SET utf8 column,

Mysql Event Scheduler an alternative to cronjob.

Posted on January 31, 2014 by Suresh Kamrushi in Mysql

Mysql introduce Event scheduler which we can use alternative to Cronjob. There are many advantages over cronjob like:
1) It is directly written on Mysql Server.
2) This is platform independent. Your application might be written in any language it does not matters. You just need to know mysql.

Different ways to find 2nd highest salary from employee table

Posted on December 15, 2013 by Suresh Kamrushi in Mysql

Now a days i am conducting PHP / Mysql interview for my organisation. And came across many of resumes with 3-4 years of experience in web development. But couple of developer given me the correct answer to this question. That is what i think i should share this.

Mysql Query : Nth highest salary from employee table

Posted on August 10, 2013 by Suresh Kamrushi in Mysql

You can write query in number of ways, but i list few of them which are easy to write and understand. Mysql having advantage of writing query with “limit”, by which you can handle start and end point.

Example to use variable in Mysql

Posted on August 10, 2013 by Suresh Kamrushi in Mysql

After a long time i used variable in SQL queries.
This time i have to calculate time/days difference between added date of a particular news and current date, so that viewers get how old a particular news is.

How Mysql reduce overhead from PHP!!!!!

Posted on August 10, 2013 by Suresh Kamrushi in Mysql, PHP

I enjoy to play with Mysql queries. what i learn from my past experience is,if you are doing a maintainance project or you are handling a project which is developed by some other developer and he mess up with the database definitions, than you “WILL LEARN A LOT NEW THINGS”…………. How?

HEREDoc in PHP

Posted on August 10, 2013 by Suresh Kamrushi in PHP

A way to delimit strings is the heredoc syntax: <<<. After this operator, an identifier is provided, then a newline. The string itself follows, and then the same identifier again to close the quotation.

MySql Function Between.. AND in LEFT JOIN

Posted on August 10, 2013 by Suresh Kamrushi in Mysql

If we are storing range of values in a field in a table and we want to see what are the values falling between these range, we can use “Between.. and” function along with Left Join in Mysql.

Maximum Number of Columns Per Table – Mysql

Posted on August 10, 2013 by Suresh Kamrushi in Mysql

+9-3 Maximum we can have 4096 columns per table, but exact limit depends on several factors, listed below: 1) Every table has a maximum row …

PHP-Mysql Interview Questions

Posted on August 10, 2013 by Suresh Kamrushi in Mysql, PHP

Some PHP interview question i am sharing with you, which are really interesting and upgraded my knowledge. It might help you out…:)

Htaccess and Modrewrite

Posted on August 10, 2013 by Suresh Kamrushi in PHP

In Windows, links will get to your pages regardless of capitalization (or lack of it). So if the search engine indexed your page when it was www.example.com/page01.htm, it will still find it even if you renamed it www.example.com/PAGE01.htm (but read on, as there ARE ways that capitalization might effect you). In a Linux or Unix-based environment, things are a little different. The good news is that the base URL

PHP: Calculating Business days from given dates or for particular period.

Posted on August 10, 2013 by Suresh Kamrushi in PHP

Whenever i get time i used to answers in PHP related questions in Stackoverflow. Today i come across common question being ask by number of developers, is to get the “Bussiness days” in a specific period. Developer write unneccessary of lines of codes, which we can get easily by using Datetime functions available with PHP.

PHP Interview Questions – Magic Contant,Methods and Quotes

Posted on August 9, 2013 by Suresh Kamrushi in PHP

PHP provides a large number of predefined
constants to any script which it runs.There are seven magical constants that
change depending on where they are used. For example, the value of __LINE__
depends on the line that it’s used on in your script. These special constants
are case-insensitive and are as follows: