pg_dump -h host -d baza_www -U user -t tabela -f 'plik.txt' -a -W
psql -h host -d baza_www -U user -f 'plik.txt' -W 27 lip 2009
pg_dump -h host -d baza_www -U user -t tabela -f 'plik.txt' -a -W
psql -h host -d baza_www -U user -f 'plik.txt' -W update users set user_pass = md5('abcdef') WHERE id_user = 5 if($_FILES['foto']['tmp_name']) {
$tab = getimagesize($_FILES['foto']['tmp_name']);
$width = $tab[0];
$height = $tab[1];
$mime = $tab['mime'];
if($width<600 && $height<400)
$errors[]='złe wymiary zdjęcia, minimalne wymiary 600x400';
if(!preg_match("/(jpg|jpeg|png|gif)/", $mime))
$errors[]='zły format zdjęcia';
} echo date('H:i:s', strtotime('now')) . ' ';
echo date('Y-m-d', strtotime("+2 days")) . ' ' . date('H:i:s', strtotime('now')) . '';
$task_dateend = date('Y-m-d H:i:s', strtotime(date('Y-m-d', strtotime("+2 days")) . ' ' . date('H:i:s', strtotime('now'))));
echo $task_dateend;Wynki:
2009-07-25 14:02:51
try {
$pdo = new PDO('mysql:host='.$config['db']['host'].';dbname='.$config['db']['database'], $config['db']['user'], $config['db']['password']);
$pdo -> exec("SET NAMES utf8");
<p class="mce_ws_kod">} catch (PDOException $e) {
<span class="mce_ws_kod"> print "Error!: " . $e->getMessage() . "<br/>";
die();
}PDO to uniwersalny interfejs baz danych.