Ask Your Question By Comment We Will Give You Better Solution Soon

Friday 28 February 2014

Learn Wordpress admin panel

Start a WordPress blog or create a free website in seconds. Choose from over 200 free, customizable themes. Free support from awesome humans.
WordPress is web software you can use to create a beautiful website or blog. We like to say that WordPress is both free and priceless at the same time.
The latest stable release of WordPress (Version 3.8.1) is available in two formats from the links to your right. If you have no idea what to do with this download, we recommend signing up with one of our web hosting partners that offers a one-click install of WordPress or getting a free account on WordPress.com.

Wednesday 26 February 2014

Fibonacci Series in php

<?php
$a = 1;
$b = 2;
$term = 10;
$i = 0;

echo $a." ".$b." ";
for($i; $i<10 ; $i++)
{
$c = $b + $a;
echo $c." ";
$a = $b;
$b = $c;
}
?>

Output: 1 2 3 5 8 13 21 34 55 89 144 233 377

Wednesday 5 February 2014

How To Print Stars in PHP

Q1. Print star in descending order.
 
<?php
for($i=0;$i<=5;$i++){
for($j=5-$i;$j>=1;$j--){
echo "*&nbsp;";
}
echo "<br>";
}
?>

Output:
*****
****
***
**
*

Q2. print star in ascending order.

<?php
 for($i=1;$i<=5;$i++){
 for($j=5;$j>=0;$j--){
 if($j<$i){
 echo "*&nbsp";
 }
 }echo "<br>";
 }

 ?>
 Output:
*
**
***
****
*****

Tuesday 4 February 2014

Mysql Queries With Examples

Q1. Find 2nd highest salary in sql
Ans: SELECT salary FROM table_name ORDER BY salary DESC LIMIT 1 , 1;