mirror of
https://gitlab.com/hashborgir/d2tools.git
synced 2024-11-30 04:26:03 +00:00
DescFunc 14 done
This commit is contained in:
parent
3a08d8c16c
commit
2fcc98dddb
37
ajax/D2AjaxFunctions.php
Normal file
37
ajax/D2AjaxFunctions.php
Normal file
@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
function getIscStrings($iscStat) {
|
||||
$sql = "
|
||||
SELECT
|
||||
(
|
||||
SELECT String
|
||||
FROM itemstatcost as i
|
||||
LEFT JOIN strings AS `s` ON `i`.descstrpos = `s`.`Key`
|
||||
WHERE `Stat` = '$iscStat'
|
||||
)
|
||||
AS string1,
|
||||
(
|
||||
SELECT String
|
||||
FROM itemstatcost as i
|
||||
LEFT JOIN strings AS `s` ON `i`.DescStr2 = `s`.`Key`
|
||||
WHERE `Stat` = '$iscStat'
|
||||
)
|
||||
AS string2,
|
||||
(
|
||||
SELECT descfunc
|
||||
FROM itemstatcost as i
|
||||
LEFT JOIN strings AS `s` ON `i`.descstrpos = `s`.`Key`
|
||||
WHERE `Stat` = '$iscStat'
|
||||
)
|
||||
AS descfunc,
|
||||
(
|
||||
SELECT descval
|
||||
FROM itemstatcost as i
|
||||
LEFT JOIN strings AS `s` ON `i`.descstrpos = `s`.`Key`
|
||||
WHERE `Stat` = '$iscStat'
|
||||
)
|
||||
AS descval
|
||||
";
|
||||
|
||||
return PDO_FetchRow($sql);
|
||||
}
|
Loading…
Reference in New Issue
Block a user