harsha
Posts: 16
|
Posted: 10/17/2007, 1:56 AM |
|
Hi,
I need to connect to the data base using java , and also need instruction about how to call the connection to another programme , please give the correct guide lines for this.
Thanks
|
|
|
sonic
Posts: 8
|
Posted: 10/17/2007, 2:06 AM |
|
Hi,
What DataBase are you using?
After this I'll tell you how you can connect.
|
|
|
harsha
Posts: 16
|
Posted: 10/17/2007, 2:11 AM |
|
Hi,
am using MYSQL database....
|
|
|
sonic
Posts: 8
|
Posted: 10/17/2007, 2:47 AM |
|
Have you ICQ number? It would be usefull now.
|
|
|
harsha
Posts: 16
|
Posted: 10/17/2007, 2:55 AM |
|
I do not have that number .....
can you please mail the codes and provide instruction of how to run the programme
Thanks
|
|
|
sonic
Posts: 8
|
Posted: 10/17/2007, 3:13 AM |
|
Ok, so tell me you've created ODBCDataSource?
|
|
|
harsha
Posts: 16
|
Posted: 10/17/2007, 3:23 AM |
|
Now i have created a database using the MYSQl, in this I have a table called checking where I have two attributes i.e userrname and password, now the issue is how to validate the user ,through his username and password and forward him to another page say user-profile page.
Now i got the connection also but do not know how to validate him .
Please help me .
|
|
|
sonic
Posts: 8
|
Posted: 10/17/2007, 4:06 AM |
|
As far as understood you want to create Login Page? Am I right?
|
|
|
harsha
Posts: 16
|
Posted: 10/17/2007, 4:22 AM |
|
Yes i need a login page.
|
|
|
sonic
Posts: 8
|
Posted: 10/17/2007, 5:16 AM |
|
1. You have to configure : ProjectSettings -> Security
Security Method : Table
Login Page: (PageName with Login Form).ccp
Connection: (Your MySQL Connection)
....
....
You have to enter all fields.
So as you understand there have to be all fields in your table in DataBase.
2. You have to configure : ProjectSettings -> Security Groups
Add 2 groups:
1 Users
2 Admins
|
|
|