Posts

How to Connect Twitter to Facebook

Image
To Connect to Twitter to Facebook. Just open the Following Twitter link: https://twitter.com/settings/profile/ https://facebook.twitter.com/  Follow the step given there, Just a Easy step, you have to just Click Connect to Facebook.

How to Connect Facebook to Twitter

Image
To Connect to Facebook to Twitter, Just open the Following Facebook link: https://www.facebook.com/twitter/ Follow the step given there, Just a Easy step, you have to just Click Link to Twitter. 

How to Work with Select Box after POST Data in PHP

Everytime We create a form, we used Fields like Text-BOX, Select Box, Radio and Checkbox, Here we will understand a Function to POST data to be selected on database. PHP Code  <?php function isselected($value,$optionvalue)                         {                                  if ( $value == $optionvalue )                                                          {                                                                   return "selected='selected'";                                                          } else {                                                                return false;                                                           }                         } echo "<form method="POST">";             if(isset($_POST['selectbox']))                      {                                  $valueselected = $_POST['selectbox'];                       }             echo "&l

Plane Example in JQuery

Please Follow the Link for DEMO

A Program in Jquery for Excercise - Jquery

Image
A Program in Jquery for Pity - Jquery: Style to be Define (CSS): body { margin:0px; padding:0px;background:#cc0000; } .container { margin:0px auto; padding:10px; background:#0f0f0f; position:relative; min-height:100%; width:350px; text-align: center; } .container img { display:none; max-width:100%; } .container h3 { background: #cc0000; color: aqua; padding: 5px 5px; font-size: 35px; font-weight: normal; font-family: arial; } Script to be Define (.js file): /* A JQuery Program to run a Excercise */ function startpity() { $("#gamestatus").val('1'); } function stoppity() { $("#gamestatus").val('0'); } var runningtimer = 0; var starttimer = 0; var stoptimer = 0; function runthepity() { runningtimer++; var gamestatus = $("#gamestatus").val(); if( gamestatus ==1  ) { starttimer++; console.log('pity is run for '+starttim

A Program to Printing a Box from For loop.

A Program to Printing a Box from For loop. #################################### PHP Code #################################### <?php echo "<table cellspacing= '0' cellpadding= '0'><tr>"; for ($i=1;$i<=30;$i++) { echo "<td>"; for($j=1;$j<$i;$j++ ) { echo "*"; echo "<br/>"; } echo "</td>"; } for ($i=1;$i<=30;$i++) { echo "<td>"; for($j=30;$j>=$i;$j-- ) { echo "*"; echo "<br/>"; } echo "</td>"; } echo "<table><tr>"; ?> #################################### O/P of the Code #################################### * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

PHP function call of a another class within another class

################################ PHP CODE ################################ <?php // function call of a another class class class1 { function function1() { return 123; } function function2() { return 259; } } class class2 { function function1() { $object = new class1(); echo $object->function1()+$object->function2(); } } $obj = new class2(); $obj->function1(); // function call of a another class echo "<hr/>"; echo "Above Exapmle Basic : " . (123+259); echo "<hr/>"; ?> ################################ Output of the  CODE ################################ 382 Above Example Basic : 382