| Webmaster Forum Rules | Posting Guide | Contact Us | Testimonials | Contributing Geek Program | Advertise on Geek/Talk |
|
|
|||||||
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Registered User
Join Date: Nov 2000
Location: Toronto, Ontario
Posts: 209
|
hi
How can i combine these 2 statements into one? PHP Code:
---------- |linkID| |12 | |1 | PHP Code:
---------- title --------- |great cars| can i combine those 2 statements? so that i will select all titles where cat='cars'? I tried this PHP Code:
|
|
|
|
|
|
#2 |
|
Registered User
Join Date: Aug 2001
Posts: 53
|
Not sure of your table structure but based on what you wrote you might try something like the following ...
SELECT linkcat.linkID, links.title FROM linkcat, links WHERE linkcat.linkID = links.linkID AND linkcat.cat = 'cars'; |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| MySQL installation problems. | b2gdotcom | Web Development - Programming / Coding | 3 | 11-29-2001 03:00 AM |
| Tip for heavy MySQL users: CREATE INDEX | demae | Web Hosting Discussion | 4 | 05-15-2001 04:32 PM |
| vBullletin - Corrupted MySQL records! | Steve_S | Web Design and Webmaster Issues | 5 | 02-06-2001 11:44 PM |
| mysql overload? | notibrian | Web Design and Webmaster Issues | 0 | 02-01-2001 08:03 PM |
| mysql help | kris | Web Design and Webmaster Issues | 3 | 01-01-2001 06:18 PM |
![]()