nicomen Posted March 9, 2008 Share Posted March 9, 2008 I have a question. I created a database with PostgreSQL, created a GUI with HTML, and would like to implement some PHP scripts into the HTML for things like searching, ratings, purchases. Is this something I can do? If so, how do I "connect" the database to the GUI? Thanks! Link to comment https://forums.phpfreaks.com/topic/95156-postgresql/ Share on other sites More sharing options...
nicomen Posted March 9, 2008 Author Share Posted March 9, 2008 nevermind....figured it out..thanks! Link to comment https://forums.phpfreaks.com/topic/95156-postgresql/#findComment-487484 Share on other sites More sharing options...
santhosh_89 Posted April 11, 2009 Share Posted April 11, 2009 Hello , I will give a module to connect with database, function database_connect () { # the pg_connect function will connect the database using the user name # and password . $pg=pg_connect("host=192.168.8.20 user=santhosh password=santhosh_89 dbname=santhoshkumar"); # check the connection using the ping function if it fails # return the 0 if (!pg_ping($pg)){ return 0; } # else return the database connection else{ return $pg; } } Link to comment https://forums.phpfreaks.com/topic/95156-postgresql/#findComment-807099 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.