SunQuest
           MySQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMySQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old July 10th, 2000, 12:18 AM
yoshi yoshi is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2000
Posts: 108 yoshi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Send a message via ICQ to yoshi
Hello.

I am attempting to search 2 different tables on a single page (through perl). However, the second table NEVER returns results. Will perl & MySQL only search a single table at a time? Can I get around this?

Thanks
yoshi
datera@datera.com http://www.datera.com

Reply With Quote
  #2  
Old July 11th, 2000, 08:52 AM
supine supine is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Posts: 35 supine User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
when you issue your queries the table is specified (eg 'select * from TABLE') so there is no problem selecting from any number of tables on a single page, in fact you can query as many seperate tables and databases in not only a single page but a single query as well (using joins).

so i am not sure where your difficulty lies... are you preparing the second query correctly? are you executing it? where are you putting the results and how are you getting them back to output into html?

I'd check your query first though, try it on the command line, see if that works...

Reply With Quote
  #3  
Old July 11th, 2000, 05:57 PM
yoshi yoshi is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2000
Posts: 108 yoshi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Send a message via ICQ to yoshi
I figured it out.. thanks!
I realized that I did not have any data in the second table - haha.

yoshi
datera@datera.com http://www.datera.com

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMySQL Help > searching 2 tables on one page?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway