Skip to content

Instantly share code, notes, and snippets.

View ratulcse10's full-sized avatar

Abu Shahriar Ratul ratulcse10

View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("#submitBtn").click(function(){
var $form1= $('#form1:input');
var $form2= $('#form2:input');
});
$.ajax({
type : "POST",
url : "http://phonegap.sustcse10.net/gps_tracker/login_check.php",
data : $("#userLoginForm").serialize(),
}).done(function(data) {
for(var i in data)
{
var row = data[i];
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package bangla;
import javax.swing.JOptionPane;
$.ajax({
type : "POST",
url : "http://phonegap.sustcse10.net/gps_tracker/login_check.php",
data : $('#PVForm, #PIForm').serialize()
}).done(function(data) {
alert("Sent Done");
}).error(function() {
alert ('No Server Response');
});
To add all the changes you've made:
git add .
To commit them:
git commit -m "MY MESSAGE HERE"
To push your committed changes from your local repository to your remote repository:
<?php
mysql_connect('localhost','root','') ;
mysql_select_db('User_id');
if(isset($_POST['save']))
{
$member=array($_POST['m1'],$_POST['m2'],$_POST['m3'],$_POST['m4'],$_POST['m5'],$_POST['m6'],$_POST['m7'],$_POST['m8'],$_POST['m9'],$_POST['m10']);
//for($i=0;$i<10;$i++)
//{
//echo $sql= "Select 'Names' From 'meal_entry` Where 'Names'='$member[$i]'"
@ratulcse10
ratulcse10 / ruby_on_rails_instruction
Created November 14, 2014 13:28
How to Instal Ruby on Rails With Xampp in ubuntu
Follow
https://gorails.com/setup/ubuntu/14.10
and Before MySql Add
So this
sudo apt-get install libmysqlclient-dev
gem install mysql2 -- --with-mysql-include=/opt/lampp/include --with-mysql-config=/opt/lampp/bin/mysql_config
then done
@ratulcse10
ratulcse10 / gist:11eaba687bdd4de843de
Created May 15, 2015 13:37
difference between two date in year in php
<?php
$d1 = new DateTime();
$d2 = new DateTime(date('Y-m-d', strtotime($student->dob)));
$diff = $d2->diff($d1);
echo $diff->y;
?>
@ratulcse10
ratulcse10 / gist:b60a4a32689011b24af1
Created May 15, 2015 20:32
setup tomcat7 on ubuntu 14.04 Real
https://www.digitalocean.com/community/tutorials/how-to-install-apache-tomcat-7-on-ubuntu-14-04-via-apt-get
server slow solution
replacing securerandom.source=file:/dev/urandom with securerandom.source=file:/dev/./urandom from file $JAVA_PATH/jre/lib/security/java.security solved my problem.
$JAVA_HOME is here /usr/lib/jvm/default-java
@ratulcse10
ratulcse10 / command.sh
Created August 5, 2015 09:16
composer setup ubuntu
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer