943,913 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Marked Solved
  • Views: 1677
  • ASP.NET RSS
You are currently viewing page 2 of this multi-page discussion thread; Jump to the first page
Feb 22nd, 2008
0

Re: Can someone help me with a complicated search parameters

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:
ASP.NET Syntax (Toggle Plain Text)
  1. SELECT a.City, b.State FROM Cities a, States b
  2.  
  3. instead of:
  4.  
  5. SELECT Cities.City, States.State FROM Cities, States
Last edited by SheSaidImaPregy; Feb 22nd, 2008 at 5:52 pm.
Reputation Points: 43
Solved Threads: 68
Veteran Poster
SheSaidImaPregy is offline Offline
1,080 posts
since Sep 2007
Feb 22nd, 2008
0

Re: Can someone help me with a complicated search parameters

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...
Reputation Points: 10
Solved Threads: 0
Light Poster
jtapp is offline Offline
36 posts
since Feb 2008
Feb 22nd, 2008
0

Re: Can someone help me with a complicated search parameters

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:
ASP.NET Syntax (Toggle Plain Text)
  1. [/url]
  2.  
  3. with this:
  4.  
  5. </a>
Reputation Points: 43
Solved Threads: 68
Veteran Poster
SheSaidImaPregy is offline Offline
1,080 posts
since Sep 2007
Feb 22nd, 2008
0

Re: Can someone help me with a complicated search parameters

Ok, I'll research it some more......
Reputation Points: 10
Solved Threads: 0
Light Poster
jtapp is offline Offline
36 posts
since Feb 2008
Feb 22nd, 2008
0

Re: Can someone help me with a complicated search parameters

well, the code is identical from before...

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

any ideas?
Reputation Points: 10
Solved Threads: 0
Light Poster
jtapp is offline Offline
36 posts
since Feb 2008
Feb 22nd, 2008
0

Re: Can someone help me with a complicated search parameters

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.
Reputation Points: 43
Solved Threads: 68
Veteran Poster
SheSaidImaPregy is offline Offline
1,080 posts
since Sep 2007
Feb 22nd, 2008
0

Re: Can someone help me with a complicated search parameters

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....
Reputation Points: 10
Solved Threads: 0
Light Poster
jtapp is offline Offline
36 posts
since Feb 2008
Feb 22nd, 2008
2

Re: Can someone help me with a complicated search parameters

There is, "Add to SheSaidImaPreggy's Reputation"
Reputation Points: 43
Solved Threads: 68
Veteran Poster
SheSaidImaPregy is offline Offline
1,080 posts
since Sep 2007
Feb 24th, 2008
0

Re: Can someone help me with a complicated search parameters

SheSaidImaPregy- are you available to answer one more question related to this thread?
Reputation Points: 10
Solved Threads: 0
Light Poster
jtapp is offline Offline
36 posts
since Feb 2008
Feb 25th, 2008
0

Re: Can someone help me with a complicated search parameters

Of course, just shoot.
Reputation Points: 43
Solved Threads: 68
Veteran Poster
SheSaidImaPregy is offline Offline
1,080 posts
since Sep 2007

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: problem viewing in browser...
Next Thread in ASP.NET Forum Timeline: indeterminate progress bar





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC