navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

problem

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> problem
Page: [1]
 
Guest


 
problem - 3/1/2001 23:13:00   
ok i have a custom query that ive entered into DRW. The query is as follows

SELECT person.lastname, person.firstname, photo.file
FROM person, photo
WHERE person.personID = photo.personID

This query returns every persons last name, first name, and path to there photo file (which i have a link to show photo). Problem is I have many records. What i would like to be able to do is have this query so it will allow me to search by the persons LAST NAME, so that when the page is viewed, the user can Input a last name, hit submit and have that persons last name, first name and photo file returned. Any ideas?? im stumped.

Guest


 
RE: problem - 3/1/2001 23:34:00   
SELECT person.lastname, person.firstname, photo.file
FROM person, photo
WHERE person.lastname = '%%Name%%' and person.personID = photo.personID

That is your SQL string and you will need to create a textbox whose name in this case is name and give the user a submit button that posts the results to the page where your DRW


(in reply to Guest)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> problem
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts