Jump to content

Search the Community

Showing results for tags 'where id'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (Dreamweaver, Zend, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start





Website URL








Donation Link

Found 1 result

  1. Hello, I m a beginner level about writing mysql queries. Shortly and simply my tables are as follows; userTable userid-specs 1-1,2,3 2-10,11 specsTable specid-label 1-football 2-basketball 3-tennis and my query is as follows; SELECT * FROM userTable ut, specsTable st WHERE ut.userid = 1 AND st.specid IN (ut.specs) and it gives me the wrong result like; userid_specs_specid_label 1_1,2,3_1_football where i need an output like this; userid_specs_specid_label 1_1,2,3_1_football 1_1,2,3_2_basketball 1_1,2,3_2_tennis actually output like this would be better (if it can be done) (At the end I m gonna print it like this) [userid:1] can play football,basketball,tennis So my question is, what is it i m missing and it gives me the wrong result? Thank you in advance for your help.
  • 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.