Jump to content

scalar2

Members
  • Posts

    7
  • Joined

  • Last visited

scalar2's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Username: scalar Server: Tommy Domain: scalar.heliohost.org
  2. I can't log into my account (Username: scalar, Domain: scalar.heliohost.org).
  3. Oh, thanks alot! Could you explain why it doesn't work if i just pass the variables, please?
  4. Thanks for your reply, i shortended my code a bit: <?php if(isset($_GET["value"])){ $value = $_GET["value"]; $conn = new SQLConnection(); $conn->insertData($value); } class SQLConnection{ public $servername = "localhost"; public $username = "scalar_sql"; public $password = ""; public $dbname = "scalar_measurements"; function __construct(){ } function insertData($value){ $link = mysqli_connect($servername,$username, $password, $dbname); if (!$link) { die('Connect Error (' . mysqli_connect_errno() . ') ' . mysqli_connect_error()); } echo 'Success... ' . mysqli_get_host_info($link) . "\n"; mysqli_close($link); } } ?> As you can see here, i created a new user and assigned it to the database but i still get the same error, i don't know what i am doing wrong In particular i don't understand why it is Access denied for user ''@'localhost'" , why doesn't the real username show up?
  5. Hi, i don't know if i am the only one but it happens from time to time that my website is not available (even though tommy is online as well as the two name servers). Does anybody else experience this problem?
  6. Hi, i try to connect to my MySQL-Database with this PHP-Code: <?php if(isset($_GET["value"])){ $value = $_GET["value"]; $conn = new SQLConnection(); $conn->insertData($value); } class SQLConnection{ private $servername = "localhost"; private $username = ""; private $password = ""; private $dbname = ""; function __construct(){ } function insertData($value){ $conn = new mysqli($servername,$username,$password); if($conn->connect_errno) echo "Couldn't connect to database. " . $conn->errno . $conn->connect_errno; else{ $conn->close(); } } } ?> I created a second MySQL user explicitly for this database and i am 100% sure that i use the correct name / password. But i always get: I found this in the error log:
  7. Hi, if i try to connect via ftp via FileZilla i get a timeout message after 20 seconds of inactivity from the server. If i take a look at the open ftp connections in cPanel, the connection to FileZilla is described as "IDLE". I downloaded the FileZilla configuration xml file for my admin account. What could be the problem?
×
×
  • Create New...