|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Whats wrong with my php login code???
whats wrong???
PHP Code:
|
|
#2
|
||||
|
||||
|
First off, what's it doing or not doing? are you getting errors? if so what are they and where are the occouring?
From just glimpsing at your code I found this one... PHP Code:
PHP Code:
And one recomendation create another php file for database information, such as maybe dbinfo.php and have it look like this PHP Code:
PHP Code:
that way your usernames and stuff arent in your main file if they get ahold of it ![]() And one question, why do you have PHP Code:
Couldnt you make it just like this instead? PHP Code:
|
|
#3
|
|||
|
|||
|
I have no idea...
, I'm new to PHP but I can only do limited of things. This is one of the scripts my last PHP coder did and I'm trying to edit it so the login will post to self if i use require once on my page. |
|
#4
|
|||
|
|||
|
Ok I done your way and I modified it alittle too, My code is now,
PHP Code:
I want to make it post to $php_self. I tried to require it on a page and I get problems. Can you tell me how I can fix the problem? |
|
#5
|
||||
|
||||
|
You'll need to post what you have for me to be able to see it...
|
|
#6
|
|||
|
|||
|
AHH! nvm about that its ****** up,
I have a new one PHP Code:
I use this for http://www.csvelocity.com/private/design, but the problem in it is it wont get user permissions in it. This is what I have for the page that uses login.php PHP Code:
Can you fix this? |
|
#7
|
|||
|
|||
|
U say your new to PHP and that this code was given to you. It looks to have some complex pieces of code in it, and if your new UR not gonna really find out where the problem is.
UR best off starting a fresh PHP file and learning as U go along, at least U'll easily identify the errors that occur and can easily rectify them.
__________________
Tryst |
|
#8
|
|||
|
|||
|
I already know what the problem is, Its just not getting the permissions.
|
|
#9
|
||||
|
||||
|
What permissions are you talking about? File permissions? If so then you need to talk to your administrator to see about changing the file permissions for whichever file it's trying to access
|
|
#10
|
|||
|
|||
|
permissions for admin flags.....
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > Whats wrong with my php login code??? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|