Register and join over 40,000 other developers!
Recent Topics
-
The Game You Are Waiting For?
WendellHarper - Dec 06 2020 01:21 PM
-
Quora and Reddit Backlinks
WendellHarper - Dec 06 2020 01:14 PM
-
Delete account
pindo - Jul 23 2020 01:33 AM
-
Print specific values from dictionary with a specific key name
Siten0308 - Jun 20 2019 01:43 PM
-
Learn algorithms and programming concepts
johnnylo - Apr 23 2019 07:49 AM
Recent Blog Entries
Recent Status Updates
Popular Tags
- networking
- Managed C++
- stream
- console
- database
- authentication
- Visual Basic 4 / 5 / 6
- session
- Connection
- asp.net
- import
- syntax
- hardware
- html5
- array
- mysql
- java
- php
- c++
- string
- C#
- html
- loop
- timer
- jquery
- ajax
- javascript
- programming
- android
- css
- assembly
- c
- form
- vb.net
- xml
- linked list
- login
- encryption
- pseudocode
- calculator
- sql
- python
- setup
- help
- game
- combobox
- binary
- hello world
- grid
- innerHTML

40 replies to this topic
#13
Posted 14 July 2008 - 09:09 PM
Ahh np dude
#14
Posted 25 August 2008 - 11:43 PM
I'm having problems with registration, I've changed mysql data to point to my db server, login works, as well as logout. Only problem is registration, once I register new accouint, I'm informed it was successfully created, even though nothing really happened... What could be the problem?
#15
Guest_Jaan_*
Posted 26 August 2008 - 11:20 AM
inserting info into database..post your script
#16
Posted 27 August 2008 - 12:30 PM
Well i made this awhile ago so i see some flaws of stuff i didn't add. Like or die(mysql_error()); but have you altered anything?
Also show me your config.php code
Also show me your config.php code
#17
Posted 30 August 2008 - 05:29 AM
Sory, my bad, I've changed a bit the code, and the problem was made by me.
Anyway, it works perfectly now, and really thanks for the script
Anyway, it works perfectly now, and really thanks for the script
#18
Posted 31 August 2008 - 10:04 PM
Ok, I have few questions, hopefuly, they'll be no big deal.
First of all, I have added one more field in DB. gid (group id).
1) When user registers account should I just add something like this to the process.php
2) How can I using the session_is_registered, show specific content for only gid of my own choice, for example, I want to show admin.php only to 'Admnistrator' and 'Super Administrator' groups
First of all, I have added one more field in DB. gid (group id).
1) When user registers account should I just add something like this to the process.php
$query = $config->query("INSERT INTO members (id, username, password, email, gid) VALUES (NULL, '$myusername', '$encrypt_password', '$email', 'Registered User')");
2) How can I using the session_is_registered, show specific content for only gid of my own choice, for example, I want to show admin.php only to 'Admnistrator' and 'Super Administrator' groups
#19
Posted 01 September 2008 - 08:13 AM
I've put the script together, however. When trying to use register.php, it returns me with:
Warning: session_register() [function.session-register]: Cannot send session cache limiter - headers already sent (output started at /home/xxxx/public_html/SCRIPT/config.php:24) in /home/xxxx/public_html/SCRIPT/process.php on line 120
Warning: Cannot modify header information - headers already sent by (output started at /home/xxxx/public_html/SCRIPT/config.php:24) in /home/xxxx/public_html/SCRIPT/process.php on line 128
When using login.php it returns me with:
Warning: session_register() [function.session-register]: Cannot send session cache limiter - headers already sent (output started at /home/gitfan5/public_html/SCRIPT/config.php:24) in /home/xxxxx/public_html/SCRIPT/process.php on line 47
Warning: Cannot modify header information - headers already sent by (output started at /home/xxx/public_html/SCRIPT/config.php:24) in /home/gitfan5/public_html/SCRIPT/process.php on line 48
Can anyone help?
Warning: session_register() [function.session-register]: Cannot send session cache limiter - headers already sent (output started at /home/xxxx/public_html/SCRIPT/config.php:24) in /home/xxxx/public_html/SCRIPT/process.php on line 120
Warning: Cannot modify header information - headers already sent by (output started at /home/xxxx/public_html/SCRIPT/config.php:24) in /home/xxxx/public_html/SCRIPT/process.php on line 128
When using login.php it returns me with:
Warning: session_register() [function.session-register]: Cannot send session cache limiter - headers already sent (output started at /home/gitfan5/public_html/SCRIPT/config.php:24) in /home/xxxxx/public_html/SCRIPT/process.php on line 47
Warning: Cannot modify header information - headers already sent by (output started at /home/xxx/public_html/SCRIPT/config.php:24) in /home/gitfan5/public_html/SCRIPT/process.php on line 48
Can anyone help?
#20
Posted 01 September 2008 - 08:20 AM
Not sure why you quoted my post, but yeah, it's a nice script. And welcome to CodeCall, I sure hope you'll stick around.
If you enjoy reading this discussion and are thinking about commenting, why not click here to register and start participating in under a minute?
#21
Posted 01 September 2008 - 11:16 AM
I've put the script together, however. When trying to use register.php, it returns me with:
Warning: session_register() [function.session-register]: Cannot send session cache limiter - headers already sent (output started at /home/xxxx/public_html/SCRIPT/config.php:24) in /home/xxxx/public_html/SCRIPT/process.php on line 120
Warning: Cannot modify header information - headers already sent by (output started at /home/xxxx/public_html/SCRIPT/config.php:24) in /home/xxxx/public_html/SCRIPT/process.php on line 128
When using login.php it returns me with:
Warning: session_register() [function.session-register]: Cannot send session cache limiter - headers already sent (output started at /home/gitfan5/public_html/SCRIPT/config.php:24) in /home/xxxxx/public_html/SCRIPT/process.php on line 47
Warning: Cannot modify header information - headers already sent by (output started at /home/xxx/public_html/SCRIPT/config.php:24) in /home/gitfan5/public_html/SCRIPT/process.php on line 48
Can anyone help?
Have you modified the script in any way?
#22
Posted 04 September 2008 - 05:14 PM
The way i would write this is like..Ok, I have few questions, hopefuly, they'll be no big deal.
First of all, I have added one more field in DB. gid (group id).
1) When user registers account should I just add something like this to the process.php$query = $config->query("INSERT INTO members (id, username, password, email, gid) VALUES (NULL, '$myusername', '$encrypt_password', '$email', 'Registered User')");
2) How can I using the session_is_registered, show specific content for only gid of my own choice, for example, I want to show admin.php only to 'Admnistrator' and 'Super Administrator' groups
In my config.php i would define the userlevel for the "admin" and "Super Admin" Like so
define("ADMIN", "3");
define("SUPER_ADMIN", "4");
Then in the sql i would add a column for userlevel.. default being 1 (user)
then do a sql search on that username and get the userlevel.
then on the new page add this
<?
if($userlevel == SUPER_ADMIN){
view the super admin functions here
}
elseif($userlevel == ADMIN){
view the admin functions here
}
else{
you could either put a echo saying your not allowed to view this page you dont have the privledge's or you can put the "users" functions here.
}
?>
}
#23
Posted 05 September 2008 - 05:17 AM
Thanx, that helped a lot.
and +rep for being really helpful
and +rep for being really helpful

#24
Posted 05 September 2008 - 06:49 AM
Thanks haha and no problem.. I know how hard it is to start off so helping is a gratitude
Also tagged with one or more of these keywords: align, login, registering
General Forums →
General Programming →
How do you align the last line, so it is perfectly order.Started by monkeybusiness, 05 Nov 2015 ![]() |
|
![]() |
||
Language Forums →
PHP →
need some help in converting this code from mysl to pdoStarted by NanaKwekuDenise, 14 Mar 2014 ![]() |
|
![]() |
||
General Forums →
General Programming →
Providing web resources only to authenticated usersStarted by Kaishain, 01 Feb 2014 ![]() |
|
![]() |
||
Language Forums →
Java →
check if user is login or notStarted by game2d, 16 Dec 2013 ![]() |
|
![]() |
||
![]() PHP session set but not being detectedStarted by JakeWelton, 06 Oct 2013 ![]() |
|
![]() |
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download