REF : https://www.codeigniter.com/userguide2/database/active_record.html
$q = $this->db->query("select * from test_user where data_id = ?" , array($data_id));
echo "<br>Last Query = " . $this->db->last_query(); // View Last query
//Option 2
REF : https://www.codeigniter.com/userguide2/database/active_record.html
$q = $this->db->query("select * from test_user where data_id = ?" , array($data_id));
echo "<br>Last Query = " . $this->db->last_query(); // View Last query
//Option 2
<?php | |
/* Author: Thitipong Samranvanich | |
Require : PHP Codeigniter Framework | |
Since : 2017-03-23 | |
For use in UnitTest Only | |
Call Function by | |
1. add "unittest1" in config/autoload.php | |
2. in controller |
REF : http://stackoverflow.com/questions/8191459/how-do-i-update-node-js
//Clear NPM's cache:
//Install a little helper called 'n' , sudo is for linux
/* | |
* 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 mydb; | |
import java.sql.Connection; | |
import java.sql.DriverManager; | |
import java.sql.ResultSet; |
/*** | |
Author: Thitipong Samranvanich | |
Since: 2017 | |
Copyright 2017 | |
*/ | |
#include <Servo.h> | |
Servo myservo; | |
void setup() | |
{ |