please how conect my postgresql in this domain.
Thanks.
please how conect my postgresql in this domain.
Thanks.
You need to use the pg_connect function:
http://php.net/pg_connect
like so:
Have the pg_connect be assinged under a variable, it's more useful.PHP Code:pg_connect('host=localhost dbname=PGSQL_DB_NAME user=PGSQL_DB_USER password=PGSQL_DB_PASS');
Example:
$pg = pg_connect('host=localhost dbname=xadrieth_pgsql user=xadrieth_pg password=fluffykins');
Last edited by xadrieth; 09-29-2009 at 08:10 PM.
However, you must first create a PgSQL database using cPanel.
Click on PostGreSQL Database Wizard, and follow the steps.
█ Xavier L | Community Public Relations Manager (Free Hosting Support)
█ Yes, my position is too cool to even exist!
█ How am I helping? Rate this post by clicking theicon below! (this is even better than "liking" a post)
█ Terms of Service | Acceptable Use Policy | x10Hosting Wiki
Thank you. Frinds.
Edit:
What is the best version of Linux Fedora, Solaris, Ubuntu??
I need multiuser operating system..
Thanks.
Last edited by abisistemas; 10-05-2009 at 11:43 AM. Reason: Automerged Doublepost
uBuntu is really friendly, I'm not sure about Fedora.
Solaris isn't Linux, but it's still in the Unix (*nix) family.