Results 1 to 2 of 2

Thread: Question about MySQL query

  1. #1

    Default Question about MySQL query

    If anyone out there is good at MySQL queries, please help me out.
    Basically, I'm playing with a custom php file, and the file uses a query to select from the video table in MySQL ($query = "SELECT * FROM video WHERE type =...)
    I would like to qualify this request so that it just selects videos from a specific channel.
    Unfortunately, this becomes more complicated because the "channel" id in the video table is usually something like this: 0|1|23|0. But all I want to specify is the 1, not the whole thing.
    Does anyone know how I would do this????

  2. #2

    Default

    Please try

    SELECT *
    FROM `video`
    WHERE `channel` LIKE '%|1|%'
    LIMIT 0 , 30

Similar Threads

  1. Warning: mysql_query() [function.mysql-query]: Access denied
    By Nico in forum Installation Support
    Replies: 3
    Last Post: 08-25-2008, 09:51 AM
  2. MySQL server has gone away
    By dotcom in forum Installation Support
    Replies: 4
    Last Post: 06-05-2008, 10:40 AM
  3. MySQL server has gone away
    By vatsan in forum Installation Support
    Replies: 1
    Last Post: 04-17-2008, 05:38 AM
  4. install error mysql query
    By Haz in forum Installation Support
    Replies: 1
    Last Post: 12-07-2007, 03:41 PM
  5. MySQL server has gone away
    By cruise in forum Fixed Bugs
    Replies: 11
    Last Post: 09-27-2007, 08:28 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •