echo "Password: "; system('stty -echo'); $password = trim(fgets(STDIN)); system('stty echo'); // add a new line since the users CR didn't echo echo "\n"; echo "Your password is " . $password."\n";
$connection = new mysqli("localhost", $user, $password,$user);
$res = $connection->query("SELECT * FROM SKU_DATA");
while($row = $res->fetch_assoc()) foreach(array_keys($row) as $i) { print $i.": ".$row[$i]."\n"; } }
$res->close();