Posts

How to use Google map in your page

<iframe width="100%" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=vcon+engineers,+Noida&amp;sll=24.20689,74.311523&amp;sspn=8.110402,19.775391&amp;ie=UTF8&amp;ll=28.51629,77.520443&amp;spn=0.140162,0.418975&amp;t=h&amp;output=embed&amp;s=AARTsJovIkikYm5dXPbcrV_yDntEZnAjFg"></iframe>                         <br />                        <small><a href="http://maps.google.com/maps?f=q&amp;source=embed&amp;hl=en&amp;geocode=&amp;q=vcon+engineers,+Noida&amp;sll=24.20689,74.311523&amp;sspn=8.110402,19.775391&amp;ie=UTF8&amp;ll=28.51629,77.520443&amp;spn=0.140162,0.418975&amp;t=h" target="_blank" style="color:#0000FF;text-align:left">View Larger...

How to multiple search by the one word

<?php         if ( $_POST["funSearch"] != ""  )        {       $cond='';   if  ( $_POST["name"]  != ""  )       {     $cond .=" and  firstname like '%". $_POST["name"] ."%' " ; $_SESSION["nam"]=$_POST["name"];   }   else   {    $_SESSION["nam"]="";   }      if  ( $_POST["mobile"]  != ""  )       {     $cond .=" and  mobile1 like '%". $_POST["mobile"] ."%' " ;   $_SESSION["mob"]=$_POST["mobile"];   }   else   {    $_SESSION["mob"]="";   }      if  ( $_POST["address"]  != ""  )       {     $cond .= " and  address1 like '%". $_POST["address"] ."%' ";    $_SESSION["add"]= $_POST["addre...

Export file in excel formet from your data table

<?php $result = mysql_query("SELECT * FROM contact"); if($_POST['Export']==Export) { $file_name="export.csv"; //name of export file you can change here $titlelist=""; $titlelist="Contact Person,Address,City,State,Mobile,Email"; {    header("Content-type: application/vnd.ms-excel"); header('Content-Disposition: attachment; filename="'.$file_name.'"'); //write proper data fetch syntax $query= "select * from contact"; $stid=mysql_query($query); print $titlelist.chr(13).chr(10); while ($row = mysql_fetch_array($stid)) {      print "{$row['firstname']}, {$row['address1']}, {$row['city']},{$row['state']},{$row['mobile1']},{$row['email1']}";  print chr(13).chr(10); } }     exit (); } ?>

How to use google search in our webpage

--------------------------------Google search box---------------------------------------------- <form method="get" name="searchform" action="http://www.google.com/search" target="_blank"> <input type="hidden" name="sitesearch" value="" /> <input onfocus="searchfield_focus(this)" style="color:#808080;font-style:italic;" alt="search" type="text" name="as_q" size="55" value="" /> <input type="submit" value="Search" title="Search 4rapiddev.com" /> </form> ---------------------------------------------------------------------------------------------------

String breaking function

--------------------------------string breaking function------------------- $someWords = "Please don't blow me to pieces."; $wordChunks = explode(" ", $someWords); for($i = 0; $i < count($wordChunks); $i++){ echo "Piece $i = $wordChunks[$i] <br />"; } $wordChunksLimited = explode(" ", $someWords, 4); for($i = 0; $i < count($wordChunksLimited); $i++){ echo "Limited Piece $i = $wordChunksLimited[$i] <br />"; }

Mobile validation in Java scripts

----------------------Java Script for Contacts & mobile------------------------ <script language="javascript">         function Validate()         {             var x = document.form1.txtPhone.value;                        if(isNaN(x)||x.indexOf(" ")!=-1)            {               alert("Enter numeric value")               return false;            }            if (x.length>8)            {                 alert("enter 8 characters");                 return false;            }            if (x.charAt(0)!="...

Email Validations in Java Script

<SCRIPT LANGUAGE="JavaScript"> function verify()   {       function validEmail(emailV) { dotV = emailV.indexOf(".", emailV.length-4); if (emailV.length < 6) return false;     if (emailV.indexOf("@") < 1) return false;     if (emailV.indexOf("@") > (emailV.length-4)) return false; if (dotV == -1 || dotV > (emailV.length-3)) return false; for (var i=0; i < emailV.length; i++) { var tempV = emailV.substring(i, i+1) if (tempV == " " || tempV == "'" || tempV == '"' || tempV == "," || tempV == ";" || tempV == "`" || tempV == "<" || tempV == ">") { return false; } } }  if (document.form1.name.value == "")           {          alert("Please Fill Your Name");  document.form1.name.focus();      return (false);           }      else if (do...