Sfoglia il codice sorgente

forgot I changed the database table name for the treasure location

development
mauirixxx 7 anni fa
committed by GitHub
parent
commit
14fd66d9e2
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: 4AEE18F83AFDEB23
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. +2
    -2
      gw-history.php

+ 2
- 2
gw-history.php Vedi File

@@ -16,7 +16,7 @@ $profcolor = $_SESSION['profcolor'];
if ($con->connect_errno > 0){
die ('Unable to connect to database [' . $db->connect_errno . ']');
}
$sql = "SELECT history.*, treasurelocation.*, playername.`playerid`, playername.`charname` FROM ((history INNER JOIN treasurelocation ON history.`locationid` = treasurelocation.`treasureid`) INNER JOIN playername ON history.`charnameid` = playername.`playerid`) WHERE history.`charnameid` = '$cnameid' ORDER BY `historydate`,`historyid` ASC";
$sql = "SELECT history.*, treasuredata.*, playername.`playerid`, playername.`charname` FROM ((history INNER JOIN treasurelocation ON history.`locationid` = treasurelocation.`treasureid`) INNER JOIN playername ON history.`charnameid` = playername.`playerid`) WHERE history.`charnameid` = '$cnameid' ORDER BY `historydate`,`historyid` ASC";
if (!$result = $con->query($sql)){
die ('There was an error running the query [' . $con->error . ']');
}
@@ -89,4 +89,4 @@ if (mysqli_num_rows($result) > 0) {
</FORM>
</CENTER>
</BODY>
</HTML>
</HTML>

Caricamento…
Annulla
Salva