Hello,
Could anyone explain to me why this is not posting data to the PostgreSQL
DB???? Please review my code listed below and let me know if you have any
suggestions:
<?php
// include 'pgconnect.php';
if(isset($_POST['submit']))
{
$connection = pg_connect("dbname=name user=user password=pass
host=localhost");
$username = addslashes(trim($_POST['username']));
$pass = addslashes(trim($_POST['password']));
$company = addslashes(trim($_POST['company']));
$password = md5($pass);
$query = pg_exec($connection, "INSERT INTO users (username, password,
company) VALUES ('$username', '$password', '$company')");
?>
Note: I made the variables in the connection string 'generic' in order to
protect my db!
I look forward to helping others on this list and also appreciate everyone's
assistance in this issue.
Thanks,
Josh
[Non-text portions of this message have been removed]