• 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 » Check the MySQL database » For example, to check the connection script to check for the check to be sure to check the MySQL database

An example of a script to connect to the MySQL 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=mysql_connect(<název-databáze>.dbaserver.net, "nazev_uzivatele", "heslo")
or die ("Could not connect: ".mysql_errno().": ".mysql_error()."<BR>");
print ("Connected successfully");
mysql_select_db("nazev_databaze");

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

mysql_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.