mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-22 04:35:52 +12:00
Start adding forums.php
This commit is contained in:
parent
db82b96faa
commit
1900da2abf
159 changed files with 232 additions and 261 deletions
|
@ -111,7 +111,6 @@ if(isset( $_POST['user'],$_POST['pass1'],$_POST['pass2'],$_POST['sex'],$_POST['e
|
|||
populate_db();
|
||||
$connect = mysqli_connect($dbhost, $dbuser, $dbpass,$dbname) or die("Unable to connect to '$dbhost'");
|
||||
$result = mysqli_query($connect, "SELECT MAX(Id) FROM Users");
|
||||
|
||||
$user_id = $result->fetch_row()[0] + 1;
|
||||
if($user_id == NULL)
|
||||
$user_id = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue