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

  • SEARCH
  • Home
  • 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 7720575
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T03:42:35+00:00 2026-06-01T03:42:35+00:00

I have no idea why but only the bottom div works the code is:

  • 0

I have no idea why but only the bottom div works the code is:

  <div id = "Travel_Base">
  <a href="camp.php" > Travel dfgdsgdfg?</a>
  <?php $UpdateLocation = mysql_query("UPDATE locations SET Zelk_Camp = 1, Zelk_Mines = 0,Zelk_CrashSite = 0 WHERE name='$name'"); ?>
  </div>

  <div id = "Travel_Mine">
  <a href="camp.php" >Travel skbgfshflgdgdf? </a>
  <?php $UpdateLocation = mysql_query("UPDATE locations SET Zelk_Camp = 0, Zelk_Mines = 1,Zelk_CrashSite = 0 WHERE name='$name1'"); ?>
  </div>

both divs are to decide a location of a player, the player will be at which location is = 1 but when i click the mine link it will take me to the mines, but not the other way. so only the bottom div works.

The divs are initially hidden and then appear when i click on a certain image if that affects it.

All answers are welcome sorry if too vague first question ever.

Thanks

  • 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-01T03:42:36+00:00Added an answer on June 1, 2026 at 3:42 am

    Okay sussed a way to do with out ajax, the code is this what i used in case anyone else comes across same problem.

     <div id = "TravelBase">
      <?php $Base = '<a href="Location_ZelkCamp.php" > Travel to Planet Zelk Base Camp?</a>';
            $BaseCurrent = '<a href="Location_ZelkCamp.php"> Planet Zelk Base Camp is your current location.</a>';
    
      $Query = mysql_query("SELECT * FROM locations WHERE name='$Basename'");
            if($Basename  = mysql_fetch_array($Query))
            if($Basename ['Zelk_Camp'] == 0)
    
     echo $Base;
    
      else
    
      echo $BaseCurrent;
    
    
      ?>
      </div>
    
     <div id = "TravelMine">
    
      <?php $Mine = '<a href="Location_ZelkMine.php" > Travel to Planet Zelk Mine?</a>';
            $MineCurrent = '<a href="Location_ZelkMine.php">Planet Zelk Mine is your current location.</a>';
    
       $Query = mysql_query("SELECT * FROM locations WHERE name='$Minename'");
            if($Minename = mysql_fetch_array($Query))
            if($Minename ['Zelk_Mines'] == 0)
    
     echo $Mine;
    
      else
    
      echo $MineCurrent;
    
      ?>
      </div>
    

    Thats one file but then you have in another file

    <? include_once("connect.php"); ?>
    <?php require("Safe.php"); ?>
    
    <?php $UpdateLocation = mysql_query("UPDATE locations SET Zelk_Camp = 1, Zelk_Mines = 0,Zelk_CrashSite = 0 WHERE name='$name'"); ?>
    
      <?  header( 'Location: Camp.php' ) ; ?>
    

    This is the update mysql file then header changes my page.
    You load the php file in this line ‘ Travel to Planet Zelk Base Camp?’;’

    Thanks for everyone who helped me 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have no idea how this works or if it is even possible but
I have no idea what this means. But here is the code that it
I have no idea why, but for some reason the top navigation at http://www.wilwaldon.com/crossing/badnav.html
Apparently xrange is faster but I have no idea why it's faster (and no
I have no idea if this is possible, but if it is, what would
I have no idea if this is possible ... but it would be cool.
I have an idea for how to solve this problem, but I wanted to
This probably sounds really stupid but I have noo idea how to implement jquery's
I have no idea why this doesn't work, but doing some validation functions and
I have some idea that it is due to some complex calculation, but i

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.