Programming Tools
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingProgramming Tools

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #61  
Old March 4th, 2003, 11:55 PM
nicat23's Avatar
nicat23 nicat23 is offline
Addicted to Chaos..
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jan 2003
Location: Ft. Worth, TX
Posts: 650 nicat23 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 48 m 34 sec
Reputation Power: 0
Send a message via AIM to nicat23 Send a message via Yahoo to nicat23
That's normal... all you have to do is remove the echo... I had that problem before too.. but it was adding to the database believe it or not..

Reply With Quote
  #62  
Old March 5th, 2003, 05:28 AM
VisionBel VisionBel is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 5 VisionBel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Well nothing happens to me, it doesn't echo I made a succesful entry either btw =[ Damn I'd like this to work, such a great script and tutorial

Reply With Quote
  #63  
Old March 6th, 2003, 02:53 PM
VisionBel VisionBel is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 5 VisionBel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Come on, need some help here

Reply With Quote
  #64  
Old March 6th, 2003, 04:29 PM
nicat23's Avatar
nicat23 nicat23 is offline
Addicted to Chaos..
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jan 2003
Location: Ft. Worth, TX
Posts: 650 nicat23 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 48 m 34 sec
Reputation Power: 0
Send a message via AIM to nicat23 Send a message via Yahoo to nicat23
if you don't want it to echo, change it from
PHP Code:
 $strQuery "INSERT INTO users ("
$strQuery .= "username, password, level, rank_r, rank_t, rank_s, rank_c) VALUES ("
echo 
$strQuery .= "'{$_POST['strUserName']}', '$password', '1', '{$_POST['strRankR']}', '{$_POST['strRankT']} , '{$_POST['strRankS']}, '{$_POST['strRankC']}')"


to
PHP Code:
 $strQuery "INSERT INTO users (`username`, `password`, `level`, `rank_r`,`rank_t`, `rank_s`, `rank_c`)";
$strQuery .= " VALUES ('{$_POST['strUserName']}', '$password', '1', '{$_POST['strRankR']}', '{$_POST['strRankT']} , '{$_POST['strRankS']}, '{$_POST['strRankC']}')"


Try that.. See if it works

Reply With Quote
  #65  
Old March 7th, 2003, 10:03 AM
alex_baciu alex_baciu is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: Bucharest
Posts: 3 alex_baciu User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Login & Logout

1.First of all, when I login using "index.php" example, I see the message from "login.php": "You have now logged in" , instead of the message "Welcome 'first name', 'last name' you are now logged in".
2.When I am logged in I want to have a link <a href="login.php">logout</a> that asures me that the session is closed.How can I use the logout functions?


Can you help me, Please!

Reply With Quote
  #66  
Old March 7th, 2003, 02:03 PM
VisionBel VisionBel is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 5 VisionBel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Look, as I said before the echo is not the problem, I did it before like you helped here, but just .. I get NO error message .. I just get a Blank page with those three links on top ... nothing gets added to the database

Reply With Quote
  #67  
Old March 7th, 2003, 05:41 PM
nicat23's Avatar
nicat23 nicat23 is offline
Addicted to Chaos..
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jan 2003
Location: Ft. Worth, TX
Posts: 650 nicat23 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 48 m 34 sec
Reputation Power: 0
Send a message via AIM to nicat23 Send a message via Yahoo to nicat23
Quote:
Originally posted by VisionBel
Look, as I said before the echo is not the problem, I did it before like you helped here, but just .. I get NO error message .. I just get a Blank page with those three links on top ... nothing gets added to the database



Try adding something below the query that is like
PHP Code:
echo "You were successfully added."


for debugging purposes.. that way you know for sure that it was successful. I have a feeling it might be working, you just arent being told it is.. <Because thats what happened to me, but I could be wrong..> have you checked your database yet to see if they're there?

Reply With Quote
  #68  
Old March 7th, 2003, 07:44 PM
VisionBel VisionBel is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 5 VisionBel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Yes, nothing gets added to the dbase, I check it using phpMyAdmin stuff.

But the values do get sent through (I can see this when I echo strQuery, as you have seen in my first post I believe), BUT NOT added to the database I just pasted the entire code as it was in the tutorial, had some parse errors, np. Then I added those rank stuff to the query stuff. That's all I did, add them ranks .. do I need to edit a function now or what (something to do with ExtraFields stuff?) I don't really think so, cause it doesn't submit anything at all now .. and it doesn't echo that standard 'your entry has been bllabla succesfully" as it is used in the tutorial.

Thanks for the help, hope we can solve this problem

Reply With Quote
  #69  
Old March 9th, 2003, 12:59 PM
Vasarab69 Vasarab69 is offline
Goldmember
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Posts: 71 Vasarab69 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 25 sec
Reputation Power: 17
Send a message via AIM to Vasarab69
whooops didnt realize it had already been answered
__________________
-Alexander

Reply With Quote
  #70  
Old March 9th, 2003, 04:07 PM
woodsy woodsy is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: Rochester, kent, uk
Posts: 2 woodsy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
can any1 find?

can any1 find Building a Members Area with PHP: Part 6/6 ? i cant seem to find it any where on site. if you post link it would be grateful. thanks

Reply With Quote
  #71  
Old March 9th, 2003, 04:53 PM
nicat23's Avatar
nicat23 nicat23 is offline
Addicted to Chaos..
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jan 2003
Location: Ft. Worth, TX
Posts: 650 nicat23 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 48 m 34 sec
Reputation Power: 0
Send a message via AIM to nicat23 Send a message via Yahoo to nicat23
Re: can any1 find?

Quote:
Originally posted by woodsy
can any1 find Building a Members Area with PHP: Part 6/6 ? i cant seem to find it any where on site. if you post link it would be grateful. thanks


Ben hasn't written it yet.. That's why it isn't on the site.

Reply With Quote
  #72  
Old April 2nd, 2003, 11:49 PM
h00kup h00kup is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Location: Arizona, USA
Posts: 8 h00kup User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to h00kup Send a message via AIM to h00kup
When I goto my login page I see this fatal error underneath all of the login/password:

Fatal error: Cannot redeclare class dbvars in /home/x18bx/public_html/secure/class.db.php on line 12

I dont know exactly whats wrong with the code... I cant find another place where it redeclares class dbvars or function dbvars anywhere on any of the pages.

Thanks,
Aaron.

Reply With Quote
  #73  
Old April 2nd, 2003, 11:52 PM
nicat23's Avatar
nicat23 nicat23 is offline
Addicted to Chaos..
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jan 2003
Location: Ft. Worth, TX
Posts: 650 nicat23 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 48 m 34 sec
Reputation Power: 0
Send a message via AIM to nicat23 Send a message via Yahoo to nicat23
Quote:
Originally posted by h00kup
When I goto my login page I see this fatal error underneath all of the login/password:

Fatal error: Cannot redeclare class dbvars in /home/x18bx/public_html/secure/class.db.php on line 12

I dont know exactly whats wrong with the code... I cant find another place where it redeclares class dbvars or function dbvars anywhere on any of the pages.

Thanks,
Aaron.


Do you have multiple includes() or requires()? that will cause that to happen.. see if you can step through your code and see if there are more than one include or requires.. also.. what is the code on line 12?

Reply With Quote
  #74  
Old April 3rd, 2003, 05:43 PM
h00kup h00kup is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Location: Arizona, USA
Posts: 8 h00kup User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to h00kup Send a message via AIM to h00kup
yea there was a problem with the include and require, I had required class.db.php and included class.db.php, so that was my problem and i fixed it. Thanks for your help, Aaron.

Reply With Quote
  #75  
Old April 9th, 2003, 05:40 AM
h00kup h00kup is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Location: Arizona, USA
Posts: 8 h00kup User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to h00kup Send a message via AIM to h00kup
I am having a real hard time storing to the session, if anyone has a script thats working do they mind showing me what it is?

When I look in my database it has added to the sessionid but does not show: username auth userid firstname lastname.

Reply With Quote
  #76  
Old April 9th, 2003, 08:43 AM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
h00kup,

It sounds like your not calling the StoreSessions function correctly, when you check the login details, are you correctly sending the users details to the function?

The easiest way is to echo out each variable, after the function has been called, and check that the variables are being sent.

Reply With Quote
  #77  
Old May 5th, 2003, 02:46 PM
hace hace is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 1 hace User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Nice, I have missed that one...


Quote:
Originally posted by Dart
hi all

thanks for the aouther of this article

i've just finished coding a class with the same idea

i so this class

it's good

but i think there is a problem in login.php

in line ( about 106 or nearby )

you used mysql_fetch_row

while you should use mysql_fetch_array

that's why the session where recorded to the database with

out the info of ( username , userid , auth , firstname , lastname )



thanks to you at all


Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingProgramming Tools > Article Discussion: Building a Members Area with PHP: Part 2/6


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap