Initial baseline WACloud CI3 production
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Testdb extends CI_Controller {
|
||||
public function index() {
|
||||
$query = $this->db->query("SHOW TABLES");
|
||||
foreach ($query->result_array() as $row) {
|
||||
echo reset($row) . "<br>"; // ambil nilai pertama tanpa peduli nama kolom
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user