Jump to content

Query DB with two params?


Aetherdan

Recommended Posts

I cant seem to work out how to query the db using two params, there's not really any documentation that I can find and I don't know how to read through the source code to check.

Anyway I want to do the following query:

SELECT columnname FROM `tablename` WHERE member_id = 1 AND somethingelse = 2

I have tried the following with no luck:

$row = \IPS\Db::i()->select('coin_id', 'trader_holdings', array('member_id=?', $member_id, 'period=?', $period));

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Upcoming Events

    No upcoming events found
×
×
  • Create New...