• zoner.sk
  • SlovakNET.sk
  • inshop.sk
  • interval.cz
  • inmail.sk
  • fotoskola.sk
  • zonerpress.sk
Administration Center | Help | About us
  • Home
  • Domains
  • Webhosting
  • E-commerce
  • Customer support
Search:   |List all help topics|FAQ| česká verze slovenská verzia english version
The Index Of The » Webhosting » Database » PostgreSQL database check » For example, to check the connection script to check for the check to be sure to check the postgreSQL database

An example of a script to connect to a postgreSQL database:

For correct functionality of the database connection must be in stringu in the specification of the database server used:

"< name-database dbaserver.net >."

If you are using to log on to the database IP address, you must edit it according to the above example, as in the case of migration of the database on a different server connection to the database is no longer work.

<?php
$link = pg_connect("host=<název-databáze>.dbaserver.net port=5432 dbname=nazev_databaze user=nazev_uzivatele password=heslo")
or die ("Nepripojeno : " . pg_last_error($link));
echo "Pripojeno";

// .....další příkazy a dotazy na databázi

pg_close($link);
?>

How satisfied are you with the quality of this help? 0% 25% 50% 75% 100%
Feedback: Send us your views on this page - this will help us improve its quality.

This form is only to improve the quality of help and so please do not expect a response from our technical support. Thank you for your understanding.

Team of customer support
Write one hundred:
  • Home
  • Domains
  • Webhosting
  • E-commerce
  • About us
  • Customer support
  • Partners
  • Administration account
Facebook - ZONER software, a.s.

Webhosting| Domain| Web pages| SSL| CZ domains| EU domains| FREE Website| Gallery

Customer support 24/7 tel.: 603 196 637, 543 257 018|Contact information|Contract conditions|© ZONER software, a.s.