you must define port or connection. for example in postgres: $conn = pg_connect(" host=localhost dbname=big user=postgres password=123"); result = pg_exec($conn,"select * from personel where name='$ID' and date='now'"); I wish your problem solve. nafiseh. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]