mirror of
https://gitlab.com/hashborgir/d2tools.git
synced 2024-11-30 12:36:03 +00:00
Unique Items SQL fix. genDocs uniqueitems.html table fix.
This commit is contained in:
parent
6db4dc4b5b
commit
e19b3ef034
@ -136,8 +136,9 @@ WHERE `type` IS NOT NULL AND uniqueitems.`code`= $table.`code` AND $table.`code`
|
|||||||
*/
|
*/
|
||||||
if ($cmd == 'search') {
|
if ($cmd == 'search') {
|
||||||
$search = $_GET['search'];
|
$search = $_GET['search'];
|
||||||
$sql = "SELECT * FROM uniqueitems WHERE `index` LIKE '%?%' OR code LIKE '%?%' AND enabled=1 ORDER BY `index`";
|
$sql = "SELECT * FROM uniqueitems WHERE `index` LIKE '%$search%' OR code LIKE '%$search%' AND enabled=1 ORDER BY `index`";
|
||||||
$res = PDO_FetchAll($sql,[$search, $search]);
|
$res = PDO_FetchAll($sql);
|
||||||
|
|
||||||
$html = '';
|
$html = '';
|
||||||
foreach ($res as $r) {
|
foreach ($res as $r) {
|
||||||
if ($sort == 'index') {
|
if ($sort == 'index') {
|
||||||
@ -193,4 +194,4 @@ if ($cmd == 'getString') {
|
|||||||
|
|
||||||
header('Content-Type: application/json');
|
header('Content-Type: application/json');
|
||||||
echo json_encode($return, JSON_INVALID_UTF8_IGNORE);
|
echo json_encode($return, JSON_INVALID_UTF8_IGNORE);
|
||||||
}
|
}
|
||||||
|
@ -398,9 +398,11 @@ EOT;
|
|||||||
echo $itemBoxBottom;
|
echo $itemBoxBottom;
|
||||||
ob_flush();
|
ob_flush();
|
||||||
|
|
||||||
$htmlFinal .= $props . $itemBoxBottom . $tableBottom;
|
$htmlFinal .= $props . $itemBoxBottom;
|
||||||
}// end loop
|
}// end loop
|
||||||
|
|
||||||
|
$htmlFinal .= $tableBottom;
|
||||||
|
|
||||||
echo $htmlbottom;
|
echo $htmlbottom;
|
||||||
|
|
||||||
$htmlFinal .= $htmlbottom;
|
$htmlFinal .= $htmlbottom;
|
||||||
|
Loading…
Reference in New Issue
Block a user