Changeset 249 for quests/export.php


Ignore:
Timestamp:
Jan 19, 2008, 10:51:11 PM (17 years ago)
Author:
maron
Message:

Ve vyhledávání pouze uživatelé, kteří mají questy, vyhledávání podle ID questu

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quests/export.php

    r247 r249  
    196196<?php
    197197// multiple="multiple"
    198     $ID = $Database->SQLCommand("SELECT user,ID FROM `user`");
     198    $ID = $Database->SQLCommand("SELECT user,ID FROM `user` WHERE
     199          EXISTS(SELECT 1 FROM quests WHERE user = user.ID) ORDER BY user");
    199200      while ($Line = mysql_fetch_array($ID))
    200201        echo '<option value="'.$Line['ID'].'">'.$Line['user'].'</option>';
Note: See TracChangeset for help on using the changeset viewer.