Search This Blog

Friday, October 26, 2012

jQuery Script Generator as you type

Sorry the example you will have to find in 3rd party page Source.

Find Source Here

Monday, October 22, 2012

PHP : Array to MySQL Table

I knew there has to be some way to simplify whole big process of INSERTing FORM DATA into SQL Table in less time.

Here is How?

1. Collect all form data into an array
    $flds = $_POST;
2. Check Every form data has been collected in ARRAY
print_r($flds);
If things are fine...
3. There is one more things that is to remove "submit" button field
Count Total # of Arrays
$carray = count($flds);
4. Remove "Submit" Array:
array_splice($flds,$carray);
5. If you want to add few fields with default values -- the put them in form HIDDEN FIELDS or Try this to add MANUALLY:
$flds["new_field"] = "new_field_value";
5. Write a Function to extract values from array and insert into MySQL Table
 function mysql_insert_array($table, $data) { 
            foreach ($data as $field=>$value) { 
            $fields[] = '`' . $field . '`';  
            $values[] = "'" . mysql_real_escape_string($value) . "'"; } 
         
            $field_list = join(',', $fields); 
            $value_list = join(', ', $values); 
            
            $query = mysql_query("INSERT INTO `" . $table . "` (" . $field_list . ") VALUES (" . $value_list . ")") or die('Error in Inserting from ARRAY : ' . mysql_error()); 
   return $query; 
   }
6. FINAL NAIL to Good Old Frame for "Wall of Fame" :
     mysql_insert_array("tablename",$flds);
Note: This function can be used without hesitation anywhere, where there is no 2nd table or cross table data storage. Copy code BINDAAS-ly...

Wow!!!! That's Called Music...

It is shameful, even after 8 years into PHP. Never used it. Although the concept was there at cornor of my mind for very longtime (about 5 years) --> That $_POST is an ARRAY ITSELF.

Finally, I worked my way out today for my client Yellow Cab Airport Taxi

Hope you like it...


Saturday, October 20, 2012

PHP Checkbox values to ARRAY and to UL LI list

I've been trying lately to store selected checkbox values to an Array and show them in UL and LI lists.

Here is how???

Sedan
Stretch
SUV
Coach Bus
Classic Stretch
Hummer
Party Limo
Classic Stretch
Passenger Van
SUV Stretch
Airport Stretch

if(isset($_POST["csubmit"])){ print_r($_POST['fleet']); $arr = $_POST['fleet']; echo ''; }

PHP Assign Checkbox Values to Array and to a Standard Variable

Oh Boy! I've banged my head, kicked mouse - cursed unfriendliness of these coding syntax and finally found a way.

What about it???

--- I Have 10 Checkboxes
--- Where only selected Checkbox values need to stored into an ARRAY
Once Checkbox values stored into an Array
--- Assign those values to a Standard PHP Variable

Here is HOW for your references:


Sedan
Stretch
SUV
Coach Bus
Classic Stretch
Hummer
Party Limo
Classic Stretch
Passenger Van
SUV Stretch
Airport Stretch

Wow! That's Simple isn't it??? Yeh, You Bet... ----------------------------------------------------- Bay Area Taxi

Monday, October 15, 2012

Review Soda PDF 3D Reader - Do Not Download

do not install this software

My suggestion : DO NOT INSTALL -- Soda PDF 3D Reader.

I couldn't believe my self that, Soda PDF 3D Reader --> consumed 23 GB installation data space in my c:\Documents and Settings\user\Application Data\PDF Software\

All the time I was wondering What is filling up my C: Drive.

I don't know, whether this people sitting in my c: drive or using my space in "cloud".

My suggestion is NOT TO INSTALL.  Beware of them.

nGinX - New Light Weight Web Server

nginx light weight web server

nGinX - pronounced as Engine-X, a new kid on the block of Web Servers, also being touted as "Lightest" Weight Web Server of its kind currently available for download for free.

About nGinX
nginx [engine x] is an HTTP and reverse proxy server, as well as a mail proxy server, written by Igor Sysoev. For a long time, it has been running on many heavily loaded Russian sites including Yandex, Mail.Ru, VKontakte, and Rambler. According to Netcraft nginx served or proxied 11.48% busiest sites in August 2012. Here are some of the success stories: Netflix, Wordpress.com, FastMail.FM.


  • Easy, flexible and logical configuration.
  • Ability to reconfigure and upgrade NGINX instances on-the-fly, without dropping user requests.
  • Application request routing via FastCGI, uwsgi or SCGI protocols; NGINX can also serve static content directly from storage for additional performance optimization.
  • The only software tested that was capable of reliably handling over 10,000 request per second of live traffic to WordPress applications from a single server.
  • NGINX’s memory and CPU footprints are minimal, and predictable. After switching to NGINX the CPU usage on the load balancing servers dropped three times.
  • Can handle over 10,000 simultaneous IMAP, POP, Web,SSL & SMTP connections with a basic Configuration




Taxi Website Designer

Monday, October 8, 2012

Google MAP API : Auto Complete Example

Google Map API V3 - Auto Complete Examples

Many a times you have to provide a City Name Auto Complete tools / Input Textbox to avoid of user typing their city name mis-spelled.

Here is how:
Auto Complete : Example

Our new Fare Calculator for A Hospital Transportation - The Best Fare Calculator

Saturday, October 6, 2012

Google MAP API V3 - Detect Geo Location based on IP Address

Using Google MAP API V3 -- Detect Geo Location Based on visitor's IP Address.

Example : Google MAP V3 Link  --- View Source Code



-------------------------------------------
Our New Website : http://www.taxiinsanjose.com

Sunday, September 9, 2012

IEFix - How to Fix Image Size in IE - Solved

Here is a simple IE6 and above Update from Microsoft:

Simply Copy & Paste code below:

img { -ms-interpolation-mode: bicubic; }

Charming, It Works!

Our New Creation : Taxi in San Jose, CA

Wednesday, August 29, 2012

Cross Browser Rounded Corner CSS Example - Border Radius

Cross Browser Rounded Corner CSS - Border Radius References:

Chrome : -webkit-border-radius:10px;
Firefox  : -moz-border-radius:10px;
Opera   : -o-border-radius:10px    or also you can use as -opera-border-radius
Safari    : -khtml-border-radius:10px;

IE 9.0+  : border-radius:10px;  (Forgive if it does not work - That Shit I bet won't Work)

You can also use other parameters in combination with 10px 0 10px 10px;


Our Latest Deployments:
Taxi In San Jose | Yellow Cab Airport Taxi

Thursday, August 2, 2012

Countries Drop Down List - 242 Countries Updated

You should be a "Lazy Developer" to visit this page (Do Not Take Me Wrong,  Me too ;-))

Here is list of upto date 242 Countries Drop Down List for your References.




Now You know How to copy this code??? (Hints) 1. View Source - Scroll down to <select> tag and copy entire Tag 2. Google Chrome Users --> Right Click on Drop Down --> Inspect Element --> (Tag is selected) Right Click again on Tag --> Copy as HTML 3. And 'am sure Firefox users are no dumb. Most intellectuals

~ Happy Pastings ~

Courtesy - Taxi Website Designer.com

Wednesday, August 1, 2012

HTML URL to make call from iphone,blackberry,android

All smartphone supports IETF RFC 3966 standards.  This includes iPhone, iPad and iPod as well as host of other smartphones like BlackBerry, Android, Nokia etc.

To Place A Call Link:

<a href="tel:555-666-7777">Call Now : 555-666-7777



Calling HTML URL Example for iPhone, iPad, Android, BlackBerry

Intiating


< a href="tel:555-666-7777">555-666-7777< /a>

Web Friendly Free Fonts

Here are few web friendly Font for you






Tuesday, July 31, 2012

Source Script Formatting in Dreamweaver

Source Script Formatting in Dreamweaver is very simple.



Dreamweaver Menu --> Commands --> Apply Source Formatting

There you go.  Cool Isn't It???

You can also format based on section or selection.  It works. Try IT.

content-wide advt