Jump to content

Tom8001

Members
  • Posts

    205
  • Joined

  • Last visited

About Tom8001

  • Birthday 05/25/2000

Profile Information

  • Gender
    Male
  • Location
    Unk0wn

Tom8001's Achievements

Member

Member (2/5)

0

Reputation

  1. Yeah File Permissions are 0644 and my server log, [25-Jul-2017 18:10:27 UTC] PHP Fatal error: Call to a member function bindParam() on string in /home/supernatural/public_html/forum/banappeal.php on line 16 [25-Jul-2017 18:14:15 UTC] PHP Fatal error: Call to a member function bindParam() on string in /home/supernatural/public_html/forum/banappeal.php on line 16 [26-Jul-2017 12:39:50 UTC] PHP Fatal error: Call to a member function bindParam() on string in /home/supernatural/public_html/forum/banappeal.php on line 16 [26-Jul-2017 12:52:54 UTC] PHP Warning: mysqli::prepare(): Couldn't fetch mysqli in /home/supernatural/public_html/forum/banappeal.php on line 14 [26-Jul-2017 12:52:54 UTC] PHP Fatal error: Call to a member function bindparam() on null in /home/supernatural/public_html/forum/banappeal.php on line 15 [26-Jul-2017 12:53:40 UTC] PHP Warning: mysqli::prepare(): Couldn't fetch mysqli in /home/supernatural/public_html/forum/banappeal.php on line 11 [26-Jul-2017 12:53:40 UTC] PHP Fatal error: Call to a member function bindparam() on null in /home/supernatural/public_html/forum/banappeal.php on line 12 This is kind of a tricky one because the banned users are on my mine craft server which on a separate server host so i could copy the banned txt over to the web server but i would have to keep copying it everytime the file is updated.
  2. Hello, i am currently working on my forum for a minecraft server and am trying to code a banappeal submission form but when i run the code i get a 500 internal error and wanted to post my code here since I might have totally misunderstood the logic i am still fairly new to it all. And i was told not to use if($_SERVER['REQUEST_METHOD'] == "POST") { Does anyone know the reason for this? <?php require('con.php'); if($_SERVER['REQUEST_METHOD'] == "POST") { $user = htmlentities($_POST['mineuser'], ENT_QUOTES); $forumuser = htmlentities($_POST['forumuser'], ENT_QUOTES); $reason = htmlentities($_POST['text'], ENT_QUOTES); $stmt = $con->prepare("INSERT INTO banappeal (mineuser, forumuser, reason) VALUES (?, ?, ?)"); $stmt->bindparam("sss", $user, $forumuser, $reason); $user = htmlentities($_POST['mineuser'], ENT_QUOTES); $forumuser = htmlentities($_POST['forumuser'], ENT_QUOTES); $reason = htmlentities($_POST['text'], ENT_QUOTES); $result = $con->prepare("SELECT mineuser FROM banappeal VALUES(?)"); $result->bindParam("s", $user); $user = htmlentities($_POST['mineuser'], ENT_QUOTES); $result->execute(); $stmt->execute(); if(mysqli_num_rows($result != 0)) { echo "An appeal has already been made for the user ".$user." and cannot be appealed more than once. If you wish to appeal again then please contact the server admin."; } if($stmt === "TRUE") { echo "Your appeal for user ".$user." has been submitted and is under review."; } else { echo "There was an error while processing your request. Please try again later."; } exit(); } ?>
  3. Hello, how would i code a script that finds certain words or characters in a thread on my forum and then redirect the user? Thanks!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.