User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 427,197 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,219 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 823 | Replies: 19 | Solved
Reply
Join Date: Sep 2007
Posts: 1,057
Reputation: SheSaidImaPregy is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 61
SheSaidImaPregy SheSaidImaPregy is offline Offline
Veteran Poster

Re: Can someone help me with a complicated search parameters

  #11  
Feb 22nd, 2008
all the "a" and "b" where for is a quick reference to the table. Instead of always putting tablename.columnname, you can name the table and reference it as that name

newname.columnname

Hence:
SELECT a.City, b.State FROM Cities a, States b

instead of:

SELECT Cities.City, States.State FROM Cities, States
Last edited by SheSaidImaPregy : Feb 22nd, 2008 at 4:52 pm.
Reply With Quote  
Join Date: Feb 2008
Posts: 36
Reputation: jtapp is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
jtapp jtapp is offline Offline
Light Poster

Re: Can someone help me with a complicated search parameters

  #12  
Feb 22nd, 2008
Thanks - I loaded the latest code and its starting to shape up... there are some formatting issues, but I think I can figure all of that out.

The remaining issue seems to be the table/query at the bottom of the page. It lists the Officers, their titles, email and phone. It seems to be messed up...
Reply With Quote  
Join Date: Sep 2007
Posts: 1,057
Reputation: SheSaidImaPregy is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 61
SheSaidImaPregy SheSaidImaPregy is offline Offline
Veteran Poster

Re: Can someone help me with a complicated search parameters

  #13  
Feb 22nd, 2008
I didn't make any changes to your second query. I changed the first query for the results page. But the view page should be the same query as you had a long time ago, except for the "WHERE" clause.

Also, in your html, replace this:
[/url]

with this:

</a>
Reply With Quote  
Join Date: Feb 2008
Posts: 36
Reputation: jtapp is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
jtapp jtapp is offline Offline
Light Poster

Re: Can someone help me with a complicated search parameters

  #14  
Feb 22nd, 2008
Ok, I'll research it some more......
Reply With Quote  
Join Date: Feb 2008
Posts: 36
Reputation: jtapp is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
jtapp jtapp is offline Offline
Light Poster

Re: Can someone help me with a complicated search parameters

  #15  
Feb 22nd, 2008
well, the code is identical from before...

The error message is on the following:
while ($row = mysql_fetch_array($query))

any ideas?
Reply With Quote  
Join Date: Sep 2007
Posts: 1,057
Reputation: SheSaidImaPregy is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 61
SheSaidImaPregy SheSaidImaPregy is offline Offline
Veteran Poster

Re: Can someone help me with a complicated search parameters

  #16  
Feb 22nd, 2008
It is most likely telling you that you are trying to display data that isn't there.

Just for giggles, trade out the query to the one you had before, except change the WHERE clause to the current one. Maybe I made a typo somewhere.
Reply With Quote  
Join Date: Feb 2008
Posts: 36
Reputation: jtapp is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
jtapp jtapp is offline Offline
Light Poster

Re: Can someone help me with a complicated search parameters

  #17  
Feb 22nd, 2008
Nope, that didn't solve it. But you have already helped me tremendously.. I'll try to figure it out. Thank you very, very much and let me know if there is anything I can do in return... I don't know maybe there is a rating thing on this forum....
Reply With Quote  
Join Date: Sep 2007
Posts: 1,057
Reputation: SheSaidImaPregy is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 61
SheSaidImaPregy SheSaidImaPregy is offline Offline
Veteran Poster

Re: Can someone help me with a complicated search parameters

  #18  
Feb 22nd, 2008
There is, "Add to SheSaidImaPreggy's Reputation"
Reply With Quote  
Join Date: Feb 2008
Posts: 36
Reputation: jtapp is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
jtapp jtapp is offline Offline
Light Poster

Re: Can someone help me with a complicated search parameters

  #19  
Feb 24th, 2008
SheSaidImaPregy- are you available to answer one more question related to this thread?
Reply With Quote  
Join Date: Sep 2007
Posts: 1,057
Reputation: SheSaidImaPregy is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 61
SheSaidImaPregy SheSaidImaPregy is offline Offline
Veteran Poster

Re: Can someone help me with a complicated search parameters

  #20  
Feb 25th, 2008
Of course, just shoot.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb ASP.NET Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the ASP.NET Forum

All times are GMT -4. The time now is 10:34 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC