Jump to content

[SOLVED] Multiple ID


crashmaster

Recommended Posts

Hi there,

 

how to make sql query, where I can choos several IDs (primary keys) ??

 

For example:

I have tabel where I have 1000 rows with unique ID each,, Hot can I choose rows with ID (for ex.) 10, 13,22,45,50 by ONE query ??

 

 

    $q = mysql_query("
        SELECT
            id,img_src,copyright
        FROM
            videa
        WHERE
            id = '138'
            AND
            id = '137'

    ");

 

It doesnt work... (((

Link to comment
https://forums.phpfreaks.com/topic/150628-solved-multiple-id/
Share on other sites

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.