I'm developing a system to manage in a very simple way some tables in the database. 

The system first loads with Ajax the databases the user can see and manage. Then load the tables in that database and then load the data for that table.

I have something like this:

```
$.ajax({
    url : "myUrl.php",
    data : {
        db : $dbSelector.val(),
        table : tableToLoad
    },
    success : function (json) { /* Some cool stuff here */ }
});

```

And I've found you cannot use parameterized queries when the parameters are the db name, tables or columns, so I cannot do:

```
<?php
$query = "SELECT * FROM :db.:table";
$st = $pdo->prepare($query);
$st->execute(
    array(
        "db"=>$db, 
        "table" => $table
    )
);
$rows = $st->fetchAll(PDO::FETCH_OBJ);

```

I cannot use mysql\_ or mysqli\_ filtering cause we don't have it installed.
['https://Stackoverflow.com/questions/16445791', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1339973/']
The color format of the console cant accept these HEX color value: `#XXXXXX` you need to check these file:
<https://github.com/Marak/colors.js/blob/master/colors.js> and pass a [ANSI color format value](http://en.wikipedia.org/wiki/ANSI_escape_code#Colors).

As the developer describes: 

```
'bold'      : ['\x1B[1m',  '\x1B[22m'],
'italic'    : ['\x1B[3m',  '\x1B[23m'],
'underline' : ['\x1B[4m',  '\x1B[24m'],
'inverse'   : ['\x1B[7m',  '\x1B[27m'],
'strikethrough' : ['\x1B[9m',  '\x1B[29m'],
//grayscale
'white'     : ['\x1B[37m', '\x1B[39m'],
'grey'      : ['\x1B[90m', '\x1B[39m'],
'black'     : ['\x1B[30m', '\x1B[39m'],
//colors
'blue'      : ['\x1B[34m', '\x1B[39m'],
'cyan'      : ['\x1B[36m', '\x1B[39m'],
'green'     : ['\x1B[32m', '\x1B[39m'],
'magenta'   : ['\x1B[35m', '\x1B[39m'],
'red'       : ['\x1B[31m', '\x1B[39m'],
'yellow'    : ['\x1B[33m', '\x1B[39m']

```
Yes, you can use hex colors in console! This example was done in Node on OSX.

```
let hex = 'AA4296'; // magenta-ish

let red = parseInt(hex.substr(0, 2), 16);
let green = parseInt(hex.substr(2, 2), 16);
let blue = parseInt(hex.substr(4,2), 16);

let fgColorString = `\x1b[38;2;${red};${green};${blue}m`;
let bgColorString = `\x1b[48;2;${red};${green};${blue}m`;
let resetFormatString = `\x1b[0m`;

console.log(`${fgColorString}Magenta Foreground`);
console.log(`${resetFormatString}Back to Normal Colors`);
console.log(`${bgColorString}Magenta Background`);
console.log(`${resetFormatString}Back to Normal Again`);

```