Jump to content

Pandee

Members
  • Posts

    16
  • Joined

  • Last visited

Pandee's Achievements

Member

Member (2/5)

0

Reputation

  1. Ok! Thanks for that link. Ill do my best to study it up
  2. Hello! You see Im trying to link a wiki installation to use an existing database with users already populated. Ive been trying my best to research on getting it work and apparently it needs remote_user to parse a remote login into the wiki. In doing so a user wont need to login twice. Examples of this is like: https://www.mediawiki.org/wiki/Extension:Auth_remoteuser Or for doku this: https://www.dokuwiki.org/plugin:authremoteuser Thanks @requinixfor the help
  3. Hello I have the following environment: - Apache 2 -Ubuntu 18.04 -MySQL My problem is the $_SERVER['REMOTE_USER'] - When I check the phpinfo.php it shows up as empty or "No value". However I did set it on a page like so: $_SERVER["REMOTE_USER"] = $_SESSION["username"]; During the login event and it is working when printing: print "REMOTE_USER: ".$_SERVER["REMOTE_USER"]."\n"; Am I setting it incorrectly or perhaps theres a proper way to do it? Many Thanks
  4. Oh ok~! Sorry about the crystal balls...f I can ignore that I shall work on what you said!
  5. Hello, Right now I am learning about Header.. and i asked myself, Can i add a transition to it. I have the below header. Accompanied my JS/CSS to create this page redirects header("location: welcome.php"); The transition CSS/JS works by <a href="#" class="btn js-trigger-transition">Begin Transition</a> I Can't seem to find many materials about this combination. Thanks for being there!
  6. According to my DB "id" is my primary key. and "id" "username" "loggedin" are stored in session variables.
  7. So I have set up a different page which has inserted their Username / Password / Token / Email and verified set to 0 when registration is successful. When I enter the welcome.php file it would echo the Username and Email to let them know who they are logged in as and what address the verification email was sent to.
  8. Apologies, correct me if I am not on the same page. But are you talking about what sort of information I want from this query? If so, just Email and Username and Verified.
  9. Hmm... I did it because I wanted to know the username and email of the user who is logged in alongside a tinyint if they are verified or not. My query just wants to take that information from the database then send it to the echos
  10. $sql = "SELECT username, verified, email FROM users WHERE username, verified, email"; if($stmt = mysqli_prepare($link, $sql)){ // prepare statements as parameters mysqli_stmt_bind_param($stmt, "sis", $param_username, $param_verified, $param_email); // parameters $param_username = $username; $param_email = $email; $param_verified = $verified; if(mysqli_stmt_execute($stmt)){ // $_SESSION['username'] = $user['param_username']; $_SESSION['verified'] = $user['param_verified']; $_SESSION['email'] = $user['param_email']; } else{ //empty } // empty } Above is code I have been trying to get to work. I believe something is wrong with my select statement that you recommended me to use (also thanks). I can tell because when I try to do the below code... <?php echo $_SESSION['username']; ?> <?php echo $_SESSION['verified']; ?> <?php echo $_SESSION['email']; ?> Username is echo'd and email and verified does not. Thanks once again!
  11. Hello! So i have an echo like such <?php echo $_SESSION['email']; ?> Is there documentation or perhaps provide an example where/how I can pull this email from the same row of information in the MySQL database? Doing this without a require_once php page that has this information? Googling didn't really help. Many thanks for being part of my journey!
  12. *salute* Thanks for the help and recommendations to look at the logs! Appreciated!
  13. Ahh I see.. I thought it was weird when the example had no quotes. I think this should do the trick. Thank you so much!
  14. I see. Yes Im new and im learning on my own as a hobby.
  15. Sorry about the slow reply, I checked and its this "AH01071: Got error 'PHP message: PHP Parse error: syntax error, unexpected '@', expecting ')' in /var/www/vhosts/tadoo.club/httpdocs/sendEmails.php on line 6'" Was I not meant to use @ in an user email address?
×
×
  • 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.