Przeglądaj źródła

forgot I changed the database table name for the treasure location

development
mauirixxx 7 lat temu
committed by GitHub
rodzic
commit
14fd66d9e2
Nie znaleziono w bazie danych klucza dla tego podpisu ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 2 dodań i 2 usunięć
  1. +2
    -2
      gw-history.php

+ 2
- 2
gw-history.php Wyświetl plik

@@ -16,7 +16,7 @@ $profcolor = $_SESSION['profcolor'];
if ($con->connect_errno > 0){ if ($con->connect_errno > 0){
die ('Unable to connect to database [' . $db->connect_errno . ']'); 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)){ if (!$result = $con->query($sql)){
die ('There was an error running the query [' . $con->error . ']'); die ('There was an error running the query [' . $con->error . ']');
} }
@@ -89,4 +89,4 @@ if (mysqli_num_rows($result) > 0) {
</FORM> </FORM>
</CENTER> </CENTER>
</BODY> </BODY>
</HTML>
</HTML>

Ładowanie…
Anuluj
Zapisz