Hocam
<?php
try {
$db = new PDO('mysql: Host=localhost;dbname=test','root','');
$ad = 'CORC';
$sonuc=$db->exec("INSERT INTO kullanici(username) VALUES('$ad')");
echo $sonuc . ' satir eklendi';
} catch (PDOException $e) {
echo 'HATA: ' .$e->getMessage();
}
?>[B][/B]
Bu şekilde denermisiniz bir..?