Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Try Using AddNew Method
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Try Using AddNew Method

 Post Reply Post Reply Page  <12
Author
padoxky View Drop Down
Groupie
Groupie
Avatar

Joined: 17 June 2004
Location: Nigeria
Status: Offline
Points: 78
Post Options Post Options   Thanks (0) Thanks(0)   Quote padoxky Quote  Post ReplyReply Direct Link To This Post Posted: 14 July 2005 at 2:11pm
Remeber there's no primary key in tbl2 and no autonumber.
NgWebDesigns
Back to Top
padoxky View Drop Down
Groupie
Groupie
Avatar

Joined: 17 June 2004
Location: Nigeria
Status: Offline
Points: 78
Post Options Post Options   Thanks (0) Thanks(0)   Quote padoxky Quote  Post ReplyReply Direct Link To This Post Posted: 16 July 2005 at 4:58am
Is there anyone going to help me out?
 
ub3rl337ch3ch,
I expect you to help me out please

I want to displayed the records in tbl2.
NgWebDesigns
Back to Top
pmormr View Drop Down
Senior Member
Senior Member


Joined: 06 January 2003
Location: United States
Status: Offline
Points: 1479
Post Options Post Options   Thanks (0) Thanks(0)   Quote pmormr Quote  Post ReplyReply Direct Link To This Post Posted: 16 July 2005 at 3:36pm
there are hundreds... if not thousands of articles on how to use the SQL SELECT command... use the magical google
Back to Top
padoxky View Drop Down
Groupie
Groupie
Avatar

Joined: 17 June 2004
Location: Nigeria
Status: Offline
Points: 78
Post Options Post Options   Thanks (0) Thanks(0)   Quote padoxky Quote  Post ReplyReply Direct Link To This Post Posted: 18 July 2005 at 5:25am
hey  pmormr,
i suggest u read the last post before replying. Just read the previous post okay.
cox i know what am asking of.
NgWebDesigns
Back to Top
pmormr View Drop Down
Senior Member
Senior Member


Joined: 06 January 2003
Location: United States
Status: Offline
Points: 1479
Post Options Post Options   Thanks (0) Thanks(0)   Quote pmormr Quote  Post ReplyReply Direct Link To This Post Posted: 19 July 2005 at 12:42am
Most of us are very knowledgeable about ASP and SQL and very generously provide our time to helping others out. Now if you're not going to show some effort then you might as well as hire a professional (i charge anywhere from 20-60 dollars per hour depending on the project)

Now, the datatype mismatch is due to the fact that you're missing single these thingys (') around UID, and you don't have to use the brackets around all your column names. You may only leave out the hyphens when you're using a number. The UID field is as you said before text, so it must be surrounded by hyphens or you get a datatype mismatch error (i.e. numbers don't work too well with strings) If you look into it more, there are also different symbols for different datatypes... that is stuff like the # symbol for dates.

strSQL = "SELECT col1, col2, col3, uid FROM tbl2 WHERE uid='" & userID & "';"


Edited by pmormr - 19 July 2005 at 12:43am
Back to Top
padoxky View Drop Down
Groupie
Groupie
Avatar

Joined: 17 June 2004
Location: Nigeria
Status: Offline
Points: 78
Post Options Post Options   Thanks (0) Thanks(0)   Quote padoxky Quote  Post ReplyReply Direct Link To This Post Posted: 19 July 2005 at 10:08am

Thank you pmormr,

 
I will apply this method u show me now.
i get to you when is okay.
 
NgWebDesigns
Back to Top
padoxky View Drop Down
Groupie
Groupie
Avatar

Joined: 17 June 2004
Location: Nigeria
Status: Offline
Points: 78
Post Options Post Options   Thanks (0) Thanks(0)   Quote padoxky Quote  Post ReplyReply Direct Link To This Post Posted: 19 July 2005 at 3:10pm
I have try the method no error again but, it display a
blank page instead of my web contents and info in my database.
NgWebDesigns
Back to Top
pmormr View Drop Down
Senior Member
Senior Member


Joined: 06 January 2003
Location: United States
Status: Offline
Points: 1479
Post Options Post Options   Thanks (0) Thanks(0)   Quote pmormr Quote  Post ReplyReply Direct Link To This Post Posted: 20 July 2005 at 9:23pm
just opening the database isn't going to cause it to be displayed, you need to go through each record and print it to the screen. See this page: http://www.w3schools.com/ado/ado_recordset.asp
Back to Top
 Post Reply Post Reply Page  <12

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.