Welcome Guest, Not a member yet? Register   Sign In
[help]School Project Here
#31

[eluser]davidbehler[/eluser]
Works with lower case file extension: http://h1.ripway.com/mirat/a.jpg

So your user and your session table are one and the same? That's not gonna work. And that's still not what I requested in this post: http://ellislab.com/forums/viewthread/19...20/#927232
#32

[eluser]miwrath[/eluser]
still the same error i follow the codes in you post on http://ellislab.com/forums/viewthread/19...20/#927232

and the problem is the same...i just qouted it in here so that you can see it easily...but i put arrow on the line 54...
here the error message:

Fatal error: Function name must be a string in D:\wamp\www\registrar\system\application\controllers\registrar.php on line 54

its getting clearer now dude!

thank you so much!
#33

[eluser]davidbehler[/eluser]
You gotta use [ and ] instead of ( and ) when accessing an array (which $_POST is).
Code:
$username = $_POST['username'];
Just like I told you in one of my posts...
#34

[eluser]miwrath[/eluser]
thank you...your such a nice coder!

:-)

working on that part...
and this is the message:

Quote:username: mark
password: mcc
A PHP Error was encountered

Severity: Notice

Message: Undefined variable: sha1_password

Filename: models/user_model.php

Line Number: 19
password hash:
query: SELECT * FROM users WHERE username = 'mark' and password = '3a1db762f4bccd03c161a4d1f3e2717174fed591'
#35

[eluser]miwrath[/eluser]
solve but this is the output...


Quote:username: mark
password: mcc
password hash: 3a1db762f4bccd03c161a4d1f3e2717174fed591
query: SELECT * FROM users WHERE username = 'mark' and password = '3a1db762f4bccd03c161a4d1f3e2717174fed591'

:-)
#36

[eluser]davidbehler[/eluser]
The image you posted before doesn't exist anymore, so I can't check but I'm pretty sure in your database it says "mcc" for the password and not '3a1db762f4bccd03c161a4d1f3e2717174fed591'. So either you update your database and enter the sha1 hash of the password instead of the real password or you update your query to use the real password instead of the hash.
#37

[eluser]miwrath[/eluser]
BOOOM!

i got dude!

thank you so much!
#38

[eluser]miwrath[/eluser]
dude, heres another problem...
everytime i login the username & password in the database is deleted?

WHY?
#39

[eluser]davidbehler[/eluser]
Just guessing, but it's propably because you use don't have a seperate sessions table and mis-use the user table for it.
#40

[eluser]miwrath[/eluser]
okey so i have to make a "session" table for the user?
right?
that is where i have to put this
session_id
ip_address
user_agent
last_activity
and last is
user_data

hope this is clear...

because i put in my config file in application:

Code:
$autoload['libraries'] = array('database', 'form_validation', 'session');




Theme © iAndrew 2016 - Forum software by © MyBB