Jump to content

Select * problem


edawg

Recommended Posts

Hi, I have 2 databases that I want to select from, the first database is the categories one which holds 29 results, and contains an id, title, url, text field ect ect....... the other database is pictures, which contains its own id, an associated id for the categories database, and it holds is own title, picture filename, and description field, my problem is, when I SELECT * FROM categories, pictures      , it gives me all the results in order from 1 - 29 of the categories database, but the pictures database seems to only list the first row of that database repeated until the category database gets to 29, then the pictures database list result number 2, 29 times then 3, 29 times and so on?. what can I do to get them to list each result separately without repeating??.

  I'm trying to build my own php site search, so the problem is when I get a enter a search term, I get 29 results of the same term!!! :o. Ive tried to use SELECT database.table FROM database to limit the results too, but the same problem arises?.

 

please help:).

 

thanks!

Link to comment
https://forums.phpfreaks.com/topic/39805-select-problem/
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.