<?php error_reporting(E_ALL); ini_set('display_errors', '1'); ini_set('display_startup_errors', '1'); $conn_server = "adresa_serveru"; $conn_user = "login"; $conn_pass = "heslo"; $database = "název_databáze"; //mysql - do PHP 5.6 if (version_compare(phpversion(), '7.0', '<')) { echo "mysql:<br>"; $spojeni=mysql_connect($conn_server,$conn_user,$conn_pass); if (!$spojeni) { echo "Nepripojeno: " . mysql_error(); exit; } if (mysql_select_db($database)){ echo "Pripojeno"; mysql_close(); } else echo "Pripojeno, spatne jmeno databaze: " . mysql_error(); } //mysqli - od PHP verze 7 else { echo "<br>mysqli:<br>"; $mysqli=new mysqli ($conn_server,$conn_user,$conn_pass,$database); if ($mysqli->connect_errno) { printf ("Connect failed: %s\n", $mysqli->connect_error); exit(); } else echo "Pripojeno, server " . $mysqli->server_info; } ?>
Trouble logging in? Simply enter your email address OR username in order to reset your password.
For faster and more reliable delivery, add st@forpsi.com to your trusted senders list in your email software.