Colin Haig wrote:Hi
"select * from tablename where userid = '"+cUserId+"'"
if tablename.rowcount > 0
fnCheckPassword()
else
MsgInfo('User Not Found')
endif
Hope this is what you meant.
Colin
Can you explain this a little more..
i did a quick test of this, changed tablename to (members) where username = " ' +cUser+ ' " "
How ever when using members.rowcount > 0 (> is not a sign, to compile aparently) => works. i understand you did fnCheckPassword() : is a function to goto..
and blow out if not found.
Heres what i got.
Code: Select all
cSql := "select * from members where username '"+cName+"'"
//This goes through fine.
cSql := "select * from members where username '"+cName+"'"
Now how ever, when im trying to pass the cName (the one that is typed in the GET)
im trying to look on Members table , ID, username, password.
to pass through as found and true and once it is seen and is true, to close my dialog, and bring syou to the next dialog (profile) possibly.
Im unsure how to check for this.. Should i be looking for Members row, ID? then check for username.. if so.. can i get an example ?
For new people:
"Not trying to connect to the database, im trying to create a login from using the tables in the database like you would with PHP Login on a website, only no php
involved.
Thank you! in advance
Update: This is what ive recently tried to do..
Code: Select all
IF oCn == NIL
msginfo( "oCn = Nil .. No Connection" )
RETURN NIL
ENDIF
? "Query Loading"
//cSql := "SELECT * FROM `members` WHERE `username`" , { cName }
cSql := "select * from members where username '"+cName+"'"
//cSql := "SELECT * FROM `members` WHERE `id' = '"+cName+"'"
? "not the break"
if oCn:tableSet ( cSql ) = cName
?"Scream"
else
?"fart"
endif