Quantcast
Channel: General developer forum
Viewing all articles
Browse latest Browse all 37673

Re: $DB->get_record IGNORE_MULTIPLE not recommended?

$
0
0
by Hubert Chathi.  

That's basically what IGNORE_MULTIPLE does.

By the way, don't use $CFG->prefix.  Just wrap your table name in braces. ('SELECT * FROM {tablename} ...').  And don't user get_record_sql unless you really need to (get_records has both order and limit parameters).


Viewing all articles
Browse latest Browse all 37673

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>