phpRaider :: Raid Management Made Easy!phpRaider :: Raid Management Made Easy!
  phpRaider :: Raid Management Made Easy!
Register FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read

Go Back   phpRaider :: Raid Management Made Easy! > Support > General English Support

» Navigation
Main
 » Home
 » Forums
 » FAQ
Information
 » Privacy Policy
Tracker
 » Bugs
 » Tasks
Resources
 » Demonstration
 » Free Hosting
 » v1.x.x Source
» Online Users: 27
1 members and 26 guests
yomm
Most users ever online was 318, 01-01-2008 at 02:57 AM.
» Stats
Members: 26,997
Threads: 2,194
Posts: 11,339
Top Poster: BoaConstrictor (1,691)
Welcome to our newest member, Cortazzo
Reply
 
Thread Tools Display Modes
  #1  
Old 01-20-2010, 08:04 AM
BoaConstrictor BoaConstrictor is offline
Administrator
 
Join Date: Mar 2007
Location: Norway
Posts: 1,691
BoaConstrictor is on a distinguished road
Send a message via MSN to BoaConstrictor
Default

Quote:
Originally Posted by ninjagranny View Post
$sql['SELECT'] = '*';
$sql['FROM'] = 'character as c';
$sql['WHERE'] = "c.char_level >= {$data['minimum_level']}
AND c.char_level <= {$data['maximum_level']}
AND c.profile_id = ".$pMain->getProfileID();
$sql['SORT'] = 'c.char_name';
$result_chars = $db_raid->set_query('select', $sql, __FILE__, __LINE__);
If you need to check only one attribute, then you could do something like this:
Code:
SELECT
  *
FROM
  phpraider_character c,
  phpraider_attribute_data ad,
  phpraider_attribute a
WHERE
  c.character_id=ad.character_id AND
  ad.attribute_id=a.attribute_id AND
  a.att_name='Radiance' AND
  ad.att_value>=10 AND
  c.char_level >= 50 AND
  c.char_level <= 80 AND
  c.profile_id = 1
ORDER BY
  c.char_name;
That will give you all characters between 50 and 80 for the currently logged in user that also has a 'Radiance'>=10.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Powered by vBadvanced CMPS v3.2.1

All times are GMT -6. The time now is 04:40 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.

© 2006-2008 Kyle Spraggs. All Rights Reserved.Ad Management plugin by RedTyger