Click here to Skip to main content
15,892,746 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionIndexOutOfRange..please help Pin
kc_renji18-Nov-07 22:48
kc_renji18-Nov-07 22:48 
AnswerRe: IndexOutOfRange..please help Pin
Colin Angus Mackay18-Nov-07 22:58
Colin Angus Mackay18-Nov-07 22:58 
GeneralRe: IndexOutOfRange..please help Pin
kc_renji18-Nov-07 23:02
kc_renji18-Nov-07 23:02 
AnswerRe: IndexOutOfRange..please help Pin
Colin Angus Mackay18-Nov-07 23:00
Colin Angus Mackay18-Nov-07 23:00 
GeneralRe: IndexOutOfRange..please help Pin
kc_renji18-Nov-07 23:05
kc_renji18-Nov-07 23:05 
GeneralRe: IndexOutOfRange..please help Pin
Colin Angus Mackay18-Nov-07 23:47
Colin Angus Mackay18-Nov-07 23:47 
GeneralRe: IndexOutOfRange..please help Pin
kc_renji18-Nov-07 23:07
kc_renji18-Nov-07 23:07 
GeneralRe: IndexOutOfRange..please help Pin
Colin Angus Mackay18-Nov-07 23:50
Colin Angus Mackay18-Nov-07 23:50 
kc_renji wrote:
Should the query would verify if the name and password entered would match their memberID???
If not..what should i do?


I've already given you lots of advice.

Your query should not be returning passwords. It should probably just be returning the MemberID. If no rows are returned then obviously the login has failed.

You should store the memberID in the session as that will be connected to other parts of the system. (Assuming the database is well designed)

You should follow the other advice I've given, especially about SQL Injection Attacks. Your code is very weak and quite vulnerable to attack.


Upcoming FREE developer events:
* Developer! Developer! Developer! 6
* Developer Day Scotland

My website

GeneralRe: IndexOutOfRange..please help Pin
kc_renji27-Nov-07 5:43
kc_renji27-Nov-07 5:43 
Questionvb2005 Pin
vb.net818-Nov-07 22:05
vb.net818-Nov-07 22:05 
AnswerRe: vb2005 Pin
DigiOz Multimedia19-Nov-07 8:55
DigiOz Multimedia19-Nov-07 8:55 
AnswerRe: vb2005 Pin
nishkarsh_k19-Nov-07 16:38
nishkarsh_k19-Nov-07 16:38 
QuestionHow to save datagridview contents into xml and retrieve the same Pin
VB 8.018-Nov-07 20:37
VB 8.018-Nov-07 20:37 
Questioncode error Pin
kc_renji18-Nov-07 20:36
kc_renji18-Nov-07 20:36 
AnswerRe: code error Pin
pmarfleet18-Nov-07 21:27
pmarfleet18-Nov-07 21:27 
GeneralRe: code error Pin
kc_renji18-Nov-07 22:07
kc_renji18-Nov-07 22:07 
QuestionDataGridView autogenerated columns Pin
divyesh143218-Nov-07 20:05
divyesh143218-Nov-07 20:05 
AnswerRe: DataGridView autogenerated columns Pin
Dave Kreskowiak19-Nov-07 10:09
mveDave Kreskowiak19-Nov-07 10:09 
QuestionPlz help me Pin
poonams18-Nov-07 19:58
poonams18-Nov-07 19:58 
AnswerRe: Plz help me Pin
Colin Angus Mackay18-Nov-07 22:49
Colin Angus Mackay18-Nov-07 22:49 
GeneralRe: Plz help me Pin
deathbat20-Nov-07 13:25
deathbat20-Nov-07 13:25 
GeneralRe: Plz help me Pin
Colin Angus Mackay20-Nov-07 13:29
Colin Angus Mackay20-Nov-07 13:29 
QuestionHow to make datagrid searchable Pin
Rock Star.18-Nov-07 19:20
Rock Star.18-Nov-07 19:20 
AnswerRe: How to make datagrid searchable Pin
Vimalsoft(Pty) Ltd19-Nov-07 2:55
professionalVimalsoft(Pty) Ltd19-Nov-07 2:55 
QuestionSet outlook pst path [modified] Pin
Sinchan Nikam18-Nov-07 19:06
Sinchan Nikam18-Nov-07 19:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.