Php Interview Questions and Answers – Part 9


1- How can we know that a session is started or not? A session starts by session_start() function. This session_start() is always declared in header portion. it always declares first. then we write session_register(). 2- What are the differences between  mysql_fetch_array(),  mysql_fetch_object(),  mysql_fetch_row()? Answer 1: mysql_fetch_array() -> Fetch a result row as a combination of associative array and regular array. mysql_fetch_object() -> Fetch a result row as an object. mysql_fetch_row() -> Fetch a result set as a regular array(). Answer […]

Select Records using PHP MySQL Select Statement

online tutorilas

You can use SELECT statement to select data from a database. Syntax SELECT column_name(s) FROM table_name To get PHP to execute the statement above we must use the mysql_query() function. This function is used to send a query or command to a MySQL connection. For Example: The following example selects all the data stored in the “student” table (The * character selects all the data in the table): <?php $con = mysql_connect(“localhost”,”username”,”password”); if (!$con) { die(‘Could not connect: ‘ . […]

HTML5 interview questions and answers

HTML5 interview questions and answers

Q 1- What is the difference between HTML and HTML5 ? Ans: HTML5 is nothing more then upgraded version of HTML where in HTML5 Lot of new future like Video, Audio/mp3, date select function , placeholder , Canvas, 2D/3D Graphics, Local SQL Database added so that no need to do external plugin like Flash player or other library Q 2- What is the  <!DOCTYPE>  ? Is it necessary to use in HTML5 ? Ans: The <!DOCTYPE> is an instruction to […]

How to Increase Alexa Rank – 10 Proven Tips


Alexa rank mirrors a website’s popularity and the overall traffic status. And every efforts to increase the alexa rank of your blog is time well spent. There are lots of controversy about alexa rank and actual traffic status of a website. Still, a good number of advertisers rely on alexa rank of the site,before putting money on it. I will tell you 10 genuine (not artificial), easy to implement and proven tips for how to increase alexa rank in shortest […]

Create a CSV file using PHP and MYSQL


As we know that CSV files are one of the most used way to back-up mysql database and tables. However it is very simple to export or backup your mysql database table as CSV file if you have PhpMyAdmin interface installed on your server. Actually problem arises when we have to deal with a shared hosting. But by using PHP script, you can export complete mysql database table to csv files. Here in this post I have given you a […]

Swapping Array Keys and Values

Swapping Array

In this article we discuss about Swapping Array Keys and Values. If you want interchange the keys and values of an associative array. It’s very easy, just use PHP’s array_flip() function which perform a very specialized task. It reverses the key-value relationship for all the elements of an associative array and returning a new array that is the mirror image of the original. <?php $opposite_key_value = array(“white” => “black”, “day” => “night”, “open” => “close”); print_r(array_flip($opposite_key_value)); ?>

Future of SEO – 20 Questions Asked By Webmasters

Future Of SEO

A campaign by Matt Cutts, the head of Google’s web-spam team for recording a video series for webmasters has received huge response from SEO enthusiasts around the world. Till date 1265 people have participated, 581 questions asked with a total of 13,531 votes . Webmasters and SEO practitioners have asked some interesting questions to Matt which may play an important role deciding the “Future Of SEO.” I have hand-picked and compiled 20 interesting questions for you, which may modify the […]

SEO Friendly URL Structure for Higher ranking

SEO Friendly URL Structure for Higher ranking

Every content starts from a URL (Uniform Resource Locator). In fact, a blog post is an extension of a URL only. And, a SEO friendly URL structure plays an important role for higher ranking of your content in search engines. A good URL is as important as the “title” of the post. A pretty URL,which is easy to remember, catchy and not so long helps your blog post go viral, because it’s easy to share in the social media. On […]

Php Interview Questions and Answers – Part 8

Php Interview Questions and Answers

Php Interview Questions and Answers – Part 8 1- Give the syntax of REVOKE commands? The generic syntax for revoke is as following REVOKE [rights] on [database] FROM [username@hostname] Now rights can be: a) ALL privileges b) Combination of CREATE, DROP, SELECT, INSERT, UPDATE and DELETE etc. We can grant rights on all database by using *.* or some specific database by database.* or a specific table by database.table_name. 2- What is the difference between CHAR and VARCHAR data types? […]

Favorite SEO Tips for WordPress for Better Ranking


Do you want to know my Favorite SEO Tips for WordPress to rank higher in search engines? I have compiled 20 of my best seo tips for WordPress, which I am using on my own blog MoneyCTL, not only to rank higher, but also to stay immune from Google Panda, Penguin and all sorts of SE algorithm changes. SEO is an Art + Science of fine tuning of your contents and your WordPress blog as a whole to be loved […]