Skip to content

Commit

Permalink
Fixed issue
Browse files Browse the repository at this point in the history
Fixed issue where admin user and email was not being uploaded to database
  • Loading branch information
harryajc committed Aug 31, 2021
1 parent 0d1042f commit 01b309f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion createwiki.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@
$sql = "INSERT INTO wikis (wikiname, wikilocal, wikifolder, dbname, admin, adminemail) VALUES (?, ?, ?, ?, ?, ?)";
if($stmt = mysqli_prepare($link, $sql)){
// Bind variables to the prepared statement as parameters
mysqli_stmt_bind_param($stmt, "ssssss", $wiki_name, $wiki_local, $wiki_dir, $db_name, $adminuser, $adminemail);
mysqli_stmt_bind_param($stmt, "ssssss", $wiki_name, $wiki_local, $wiki_dir, $db_name, $admin_user, $admin_email);

// Attempt to execute the prepared statement
if(mysqli_stmt_execute($stmt)){
Expand Down

0 comments on commit 01b309f

Please sign in to comment.