This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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'); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.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]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.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'); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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]'" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$d1 = new DateTime(); | |
$d2 = new DateTime(date('Y-m-d', strtotime($student->dob))); | |
$diff = $d2->diff($d1); | |
echo $diff->y; | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -sS https://getcomposer.org/installer | php | |
sudo mv composer.phar /usr/local/bin/composer |
OlderNewer