mirror of
https://github.com/Nereziel/cs2-WeaponPaints.git
synced 2026-02-17 18:39:07 +00:00
Update index.php
Always show player skin as selected option
This commit is contained in:
@@ -77,8 +77,11 @@ else
|
||||
<option>Select skin</option>
|
||||
<?php
|
||||
$list = $db->select("SELECT * FROM wp_weapons_paints WHERE weapon_defindex = \"{$key["weapon_defindex"]}\"");
|
||||
foreach($list as $list){
|
||||
echo "<option value=\"{$list['weapon_defindex']}-{$list['paint']}\">{$list['paint_name']}</option>";
|
||||
foreach ($list as $list) {
|
||||
if ($list['paint_name'] == $query3[0]["paint_name"])
|
||||
echo "<option selected value=\"{$list['weapon_defindex']}-{$list['paint']}\">{$list['paint_name']}</option>";
|
||||
else
|
||||
echo "<option value=\"{$list['weapon_defindex']}-{$list['paint']}\">{$list['paint_name']}</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
@@ -92,4 +95,4 @@ else
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user