Open techangela1 opened 1 year ago
@techangela1 It looks like you're missing a semicolon after connect_error)
, so: connect_error);
Thank you so much! I will try it.
Techangela
On Mon, Jul 3, 2023 at 1:33 PM Dave Hollingworth @.***> wrote:
@techangela1 https://github.com/techangela1 It looks like you're missing a semicolon after connect_error), so: connect_error);
— Reply to this email directly, view it on GitHub https://github.com/daveh/php-signup-login/issues/11#issuecomment-1618986460, or unsubscribe https://github.com/notifications/unsubscribe-auth/BBAMKTIZRJROQLA6WOHEHZ3XOMF7JANCNFSM6AAAAAAZ4HXETU . You are receiving this because you were mentioned.Message ID: @.***>
I am getting an error after submitting the Signup form (Signup.html):
Parse error: syntax error, unexpected end of file in C:\xampp\htdocs\database.php on line 17
Database.php contents:
<?php
$host = "localhost"; $dbname = "login_db"; $username = "root"; $password = "";
$mysqli = new mysqli(hostname: $host, username: $username, password: $password, database: $dbname);
if ($mysqli->connect_errno) { die("Connection error: " . $mysqli->connect_error); }
return $mysqli;