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
Okay sussed a way to do with out ajax, the code is this what i used in case anyone else comes across same problem.
Thats one file but then you have in another file
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 🙂