Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6714567
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:30:39+00:00 2026-05-26T08:30:39+00:00

Im having trouble with an mySQL Query .What i need is a query that

  • 0

Im having trouble with an mySQL Query .What i need is a query that will display on the same page where im viewing a post a list of links to posts in the same category on the side of the page.Im almost finished a music site similar to youtube where users can listen to a track and see a list of tracks beside the post that are in the same category.
Any Information Ive found on this is just related to WordPress pluggins which im not using.
My Database Tables are

        Table_categories
           cat_id
           cat_name 

        Table - Mixes
           mix_id
           mix_subject
           mix_description
           mix_date
           mix_cat -- mix_cat is the foreign key for categories.cat_id

The cat_id of Categories is linked to the foreign key mix_cat in table Mixes.I Know it has something to do with ?id= number of the id in one of the table,s
Cheers guys Thanks for your help
Trevor

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T08:30:39+00:00Added an answer on May 26, 2026 at 8:30 am

    You could try something like

    Select * from Table_Mixes where id={insert id here, don`t forget to force the int type to avoid SQL Injection}
    

    Get the row and now you have a $mix object with a mix_cat property (or $mix[‘mix_cat’], if you get it as an array).

    Now you just

    select * from Table_Mixes where mix_cat={insert $mix->mix_cat here} order_by {whatever} limit {how many links?}
    

    and build the links.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am having trouble with the following MYSQL query and are hoping that there
I'm having trouble forming a MySQL query that performs the following action: Select all
I am having a trouble matching a string in a MySQL-query with the following
I'm trying to query a MySQL database using an array but I'm having trouble!
I am having trouble with a mysql query. I want to get a unique
I'm having trouble opening MySQL's slow query log with PHP. I'm writing a debugger
I am having trouble getting teh results i want from this mysql query. And
I am having trouble with a jQuery script.. The script displays posts from Mysql
I'm having trouble with a stubborn MySQL query. It's a quite long and complex
I am trying to run a MySQL query but I am having trouble with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.