<?php $conn_server = "adresa_serveru"; $conn_user = "login"; $conn_pass = "heslo"; $database = "název_databáze"; //mysql - do PHP 5.6 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 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 example@example.com to your trusted senders list in your email software.