Sabtu, 05 Oktober 2013

PHP Indonesia - Facebook: Hello! I using that timezone detection... but i n...

PHP Indonesia - Facebook
PHP Indonesia is a community for everyone that loves PHP. Our focus is in the PHP world but our topics encompass the entire LAMP stack. Topics include PHP coding, to memcached handling, db optimizations, server stack, web server tuning, code deploying, hosting options and much much more. Youtube Channel : http://www.youtube.com/user/OurPHPIndonesia Twitter : @php_indonesia NOTE: Rules for Wall posting: https://www.facebook.com/groups/35688476100/doc/10151597056316101/ Daftar Keanggotaan : http://www.facebook.com/groups/35688476100/doc/10150671770741101/ 
Want free Kindle ebooks?

Sign up to receive the best freebie Kindle ebook deals in your email every day.
From our sponsors
Hello! I using that timezone detection... but i n...
Oct 5th 2013, 12:22, by Olavi Allik

Olavi Allik 12:22pm Oct 5
Hello! I using that timezone detection... but i need that i can save database users timezone... How convert input id to php variable? That mean i want input id="tzvalue" convert to $tzvalue. And then i save $tzvalue database.
https://github.com/scottwater/jquery.detect_timezone

Wahyu Raja Butar-Butar 12:35pm Oct 5
http://stackoverflow.com/questions/8859401/converting-javascript-variable-to-a-php-variable

Olavi Allik 12:57pm Oct 5
I need that:
$(document).ready(function(){
$('#tzvalue').set_timezone({'default' : 'America/Chicago'});
});

Olavi Allik 12:57pm Oct 5
That #tzvalue i need it to php variable... like this $tzvalue = #tzvalue

Olavi Allik 1:04pm Oct 5
I must save database that #tzvalue without form submiting.
Like this: $tzvalue = #tzvalue; Service::add_category($tzvalue,$user_id);
public static function add_category($tzvalue, $user_id){ DBConnection::setConnection();
$sqlInsert1 = "INSERT INTO `category`(`timezone`, `user_id`) VALUES ('$tzvalue','$user_id')";
$results1 = mysql_query($sqlInsert1 , DBConnection::getConnection());
}

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

Tidak ada komentar:

Posting Komentar