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 | |
defined('BASEPATH') OR exit('No direct script access allowed'); | |
class MyUnittest10 extends CI_Controller { | |
function __construct() { | |
parent::__construct(); | |
//safeguard_check_controller_construct(); | |
} |
# DEMO WMIC Command | |
# List all property list | |
WMIC COMPUTERSYSTEM get /? | |
# -- http://www.mindphp.com/blog/65-stories/archive/2905-serialnumber-windows-.html | |
wmic bios get serialnumber | |
wmic csproduct get vendor,name,identifyingnumber |
# http://stackoverflow.com/questions/4409043/how-to-find-if-the-local-computer-is-in-a-domain | |
# is in domain or not | |
(gwmi win32_computersystem).partofdomain | |
# get Hardware Info , Domain , Hardware Model | |
(gwmi win32_computersystem) |
<?php | |
namespace tu\bt3 ; | |
function tables($panel_heading ,$table_htm ){ | |
?> | |
<div class="panel panel-default"> | |
<!-- Default panel contents --> | |
<div class="panel-heading"><?=$panel_heading?></div> | |
<table class="table table-striped"> | |
<? echo $table_htm; ?> | |
</table> |
#NOTE : | |
# หาต่อ ว่า url พวกนี้ มีอันไหนบ้าง มีคำว่า root ใน url | |
$aurl2.GetEnumerator() | where { $_ -Match "root" } | |
# หาว่า แถวไหน เป็น 404 บ้าง | |
$row.GetEnumerator() | where { $_ -Match "1.1"" 404" } | |
# หาว่าแถวไหน มีคำว่า admin บ้าง | |
$row.GetEnumerator() | where { $_ -Match "admin" } |
พบว่า JDK 1.8 รันไม่ได้ | |
สุดท้าย ใช้ set as Admin on Folder ก็ รันได้ (หลังจากลอง set path JDK_HOME , JAVA_HOME แล้วไม่สำเร็จ ) | |
http://stackoverflow.com/questions/16579334/android-studio-isnt-opening-on-windows |