Matching a variable against several options

    Date: 06/08/06 (PHP Community)    Keywords: php, mysql, sql

    In MySQL there is a way to do this:

    SELECT something FROM tablename WHERE something IN (2,3,4,5,6);


    Is there a way to do the same with PHP (the logic, not the query)?

    Source: http://community.livejournal.com/php/458704.html

« PHP Book || Sanitizing user data for... »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home