Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8431121
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T05:46:17+00:00 2026-06-10T05:46:17+00:00

<?php include ‘dbc.php’; ?> <?php session_start(); $id = $_SESSION[‘user_id’]; //$update = Reminder1; // $rt1

  • 0
    <?php 
include 'dbc.php';

?>
 <?php session_start();
 $id = $_SESSION['user_id'];
 //$update = Reminder1;
// $rt1 = Reminder1;
// $mm1 = Reminder1;


 mysql_connect("localhost", "user", "pass") or die(mysql_error()); 
 mysql_select_db("database") or die(mysql_error()); 
 $data = mysql_query("SELECT reminder FROM users WHERE $id = id)") 
 or die(mysql_error()); 

if EXISTS (reminder == Reminder1)') {
echo("Update Your Pasword reset reminder page");
}
else {
echo("redirect to /home.php");
}


?>

can anyone help me out on why this is failing, would be great i have been working on this for a while and it feels like i am hitting brick walls lol. i am still in testing so the to echos will be edited soon as it is in working condition so ignore them lines for now i left it all in for examples sake.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T05:46:19+00:00Added an answer on June 10, 2026 at 5:46 am

    fetch data

    mysql_connect("localhost", "user", "pass") or die(mysql_error()); 
    mysql_select_db("database") or die(mysql_error()); 
    $data = mysql_query("SELECT reminder FROM users WHERE id='".$id."' LIMIT 1") or die(mysql_error()); 
    $row = mysql_fetch_assoc($data);
    
    if($row['reminder'] == 'Reminder1') {
        header("Location: /reset_password.php");
    }
    else {
        header("Location: /home.php");
    }
    
    
    // but you should use PDO
    $dbh = new PDO('mysql:host=localhost;dbname=database', 'user', 'pass');
    $sth = $dbh->prepare("SELECT reminder FROM users WHERE id=:id LIMIT 1");
    $sth->execute(array(':id' => $id));
    $sth->setAttribute(PDO::FETCH_ASSOC);
    $row = $sth->fetch();
    
    if($row['reminder'] == 'Reminder1') {
        header("Location: /reset_password.php");
    }
    else {
        header("Location: /home.php");
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a very simple script that creates a user: <?php include 'mysqlserver.php'; session_start();
This is user.php: include(databse.php);//retrieving successfully first name and lastname from databse file into user.php
Before the PHP Version update I used to be able to include files as
When i use php include to include a page in my website all the
In my live site I have php include() and require() that have full path
<?php include ../music/php/logic/core.php; include ../music/php/logic/settings.php; include ../music/php/logic/music.php; $top = At world's end; // create
I have a php file that looks like this: <?php include(config.php); // put the
Here is example which I have try <?php include 'spider/classes/simple_html_dom.php'; $html = new simple_html_dom();
I have a site where the pages have the following structure: <?php include('header.php'); ?>
I'm trying to link to an external stylesheet using this code: <?php include(/homepages/9/myusername/htdocs/Mobile_Detect.php); $detect

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.