mirror of
https://gitlab.com/hashborgir/d2tools.git
synced 2025-10-13 08:24:24 -05:00
In memory images/invfiles, general sql cleanup
This commit is contained in:
@@ -71,8 +71,8 @@ if ($cmd == "getUniqueItem") {
|
||||
*
|
||||
* */
|
||||
if ($cmd == "sortBy") {
|
||||
$sql = "SELECT `index`,`$sort` FROM `uniqueitems` WHERE `enabled`='1' ORDER BY `$sort`";
|
||||
$res = PDO_FetchAll($sql);
|
||||
$sql = "SELECT `index`, ? FROM uniqueitems WHERE enabled='1' ORDER BY ?";
|
||||
$res = PDO_FetchAll($sql, [$sort]);
|
||||
|
||||
$html = '';
|
||||
foreach ($res as $r) {
|
||||
@@ -160,7 +160,9 @@ if ($cmd == 'getString') {
|
||||
|
||||
$prop = $_GET['prop'];
|
||||
|
||||
$sql = "SELECT stat1,stat2,stat3,stat4,stat5,stat6,stat7 FROM properties WHERE code = ?";
|
||||
// stat2,stat3,stat4,stat5,stat6,stat7
|
||||
|
||||
$sql = "SELECT stat1 FROM properties WHERE code = ?";
|
||||
$stat = array_filter(PDO_FetchRow($sql, [$prop]));
|
||||
|
||||
$s = array_filter($idata->getIscStrings($prop));
|
||||
|
Reference in New Issue
Block a user