[help]School Project Here |
[eluser]davidbehler[/eluser]
Not talking about your project in general, just the login/auth part. It's really hard to help you at all if you provide non of the requested info. I can't just run around and guess what you might have done or might not have done. Provide the code or I can't help you.
[eluser]miwrath[/eluser]
im sorry dude...here it is... my model Code: <?php CONTROLLER Code: <?php VIEWS Code: <html>
[eluser]davidbehler[/eluser]
This doesn't make much sense. There is no way that the query string you posted before Code: UPDATE `users` SET `last_activity` = 1313725176, `user_data` = '' WHERE `session_id` = 'ad0587c01a8c6bb737f410c742c6d0b8' Code: $query_str = "SELECT * FROM users WHERE username = ? and password = ?"; Try this code in your model instead of the two lines I quoted: Code: echo 'username: '.$username.'<br/>';
[eluser]miwrath[/eluser]
wait dude... problem solve...i change the code in your suggestion and this message goes out... but the user auth...doesnt working...i can login using any names and pw... This is on the controller php file. Code: <?php Code: You are great!
[eluser]davidbehler[/eluser]
Oh for crying out loud, just do what I told you and you'll get the query that's run to check if the entered user exists.
[eluser]miwrath[/eluser]
help...i still can input any names and password i think the checking is still a crap... :-S Code: if ($this->form_validation->run() == FALSE)
[eluser]davidbehler[/eluser]
What exactly are you doing? Do you actually read what I write or just randomly copy my examples? I'm talking about this post: http://ellislab.com/forums/viewthread/19...20/#927232 And the above error is propably caused by the [ quote] and [/ quote] you got there right before and after Code: $username = $_POST('username');
[eluser]miwrath[/eluser]
here it is.. the one example is 'mark' and hes password is 'mcc'. this is the one im trying to use to login. http://h1.ripway.com/mirat/a.JPG
|
Welcome Guest, Not a member yet? Register Sign In |