|
[SOLVED] Using the login Details via App
|
|
01-24-2012, 10:13 PM
Post: #11
|
|||
|
|||
RE: Using the login Details via App
(01-24-2012 10:08 PM)Tom K. Wrote: If you use the code I posted. You need to obviously execute the queries I postedwhen I use your code only I get error Code: Parse error: syntax error, unexpected T_IFbut the thing is I need to fix my login page to work .what do I need to change on my page ? |
|||
|
01-24-2012, 10:25 PM
Post: #12
|
|||
|
|||
|
RE: Using the login Details via App
You'll need to modify my code a bit so the queries are actually executed. Let me see your code with my code merged
I it's an unexpected T_IF then its likely you've missed a ";"
Quote:Golf and alcohol don't mix, that's why I don't drink and drive!Video Tutorials: Installing MyBB | Upgrading MyBB |
|||
|
01-24-2012, 10:29 PM
Post: #13
|
|||
|
|||
RE: Using the login Details via App
(01-24-2012 10:25 PM)Tom K. Wrote: You'll need to modify my code a bit so the queries are actually executed. Let me see your code with my code merged This is all my code , and doesnt work . Code: <?phpI just changed this line but wrong I know: Code: $query = "SELECT * FROM mybb_users WHERE username = '" . $user = validate_password_from_username($username,$password) . "'"; |
|||
|
01-24-2012, 10:57 PM
(This post was last modified: 01-24-2012 10:58 PM by Tom K..)
Post: #14
|
|||
|
|||
|
RE: Using the login Details via App
You kind of merged mine and Paul's code.
Try this (untested and written on my iPad )This bit: PHP Code: $host= "localhost"; Quote:Golf and alcohol don't mix, that's why I don't drink and drive!Video Tutorials: Installing MyBB | Upgrading MyBB |
|||
|
01-24-2012, 11:01 PM
Post: #15
|
|||
|
|||
|
RE: Using the login Details via App
nope it says invalid login , by the way I use link like this : http://mysite.com/login.php?username=myn...ord=mypass hope that is correct
|
|||
|
01-24-2012, 11:07 PM
Post: #16
|
|||
|
|||
|
RE: Using the login Details via App
Change the last "INVALID LOGIN" to "INVLAID LOGIN TEST"
then we'll know why it is failing
Quote:Golf and alcohol don't mix, that's why I don't drink and drive!Video Tutorials: Installing MyBB | Upgrading MyBB |
|||
|
01-24-2012, 11:09 PM
Post: #17
|
|||
|
|||
|
RE: Using the login Details via App
now it says "INVLAID LOGIN TEST"
|
|||
|
01-24-2012, 11:12 PM
Post: #18
|
|||
|
|||
|
RE: Using the login Details via App
Ok, so we know it's failing the mybb login. Replace this:
PHP Code: $resultarr = mysql_fetch_assoc($result); With this: PHP Code: $resultarr = mysql_fetch_assoc($result); also, your table IS called mybb_users isn't it?
Quote:Golf and alcohol don't mix, that's why I don't drink and drive!Video Tutorials: Installing MyBB | Upgrading MyBB |
|||
|
01-24-2012, 11:14 PM
Post: #19
|
|||
|
|||
RE: Using the login Details via App
(01-24-2012 11:12 PM)Tom K. Wrote: Ok, so we know it's failing the mybb login. Replace this: yes mybb_users called. Now I have a blank page it doesnt say valid or invalid |
|||
|
01-24-2012, 11:15 PM
Post: #20
|
|||
|
|||
|
RE: Using the login Details via App
Ok, that's good. We now know that the query is empty. This is probably because the username is invalid
![]() Are you sure the username is correct? Quote:Golf and alcohol don't mix, that's why I don't drink and drive!Video Tutorials: Installing MyBB | Upgrading MyBB |
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)
Search
Member List
Calendar
Help





