Intranet Journal

Go Back   IT Management Forum > Intranet Journal

Intranet Journal The new discussion forum for Intranet Journal readers. Leave comments and questions for IJ authors. Suggest story ideas and provide feedback.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 01-21-2007, 07:08 PM
meddigo meddigo is offline
Registered User
 
Join Date: Jan 2007
Posts: 1
CMS Tutorial

Sorry to bring up an old artical now, but I have come across a problem.

I have just gotten to the login part of the tutorial and while testing it I hit this error:

Fatal error: Call to undefined function: getnumrows() in /home/windfall/public_html/cms_test/includes/Sentry.php on line 65

The code in the Sentry.php (for quick reference) is:

if ($loginConnector->getNumRows($getUser) > 0){
// Login OK, store session details
// Log in
$_SESSION["user"] = $user;
$_SESSION["pass"] = $this->userdata['pass'];
$_SESSION["thegroup"] = $this->userdata['thegroup'];

if ($goodRedirect) {
header("Location: ".$goodRedirect."?".strip_tags(session_id())) ;
}
return true;

Does anyone have an idea what has gone wrong? Other than the obvious in the error message haha.

Cheers for any help,

Meddigo

EDIT: Seem to have fixed it by changing all to the newer $_GET and $_POSTs. Cheers all the same.

Last edited by meddigo; 01-21-2007 at 08:02 PM.
Reply With Quote
  #2 (permalink)  
Old 01-22-2007, 04:40 AM
bananstat bananstat is offline
Registered User
 
Join Date: Apr 2006
Location: Copenhagen
Posts: 162
Quote:
Originally Posted by meddigo
Sorry to bring up an old artical now, but I have come across a problem.
Never mind, it's brought up every now and then.

Quote:
Originally Posted by meddigo
Seem to have fixed it by changing all to the newer $_GET and $_POSTs. Cheers all the same.
That's the way to do it - adapting the code to the current trend in PHP coding usually will do the trick
Reply With Quote
  #3 (permalink)  
Old 12-09-2009, 10:44 AM
q5host q5host is offline
Registered User
 
Join Date: Dec 2009
Posts: 5
What ? Where ? Give the proper solution man no 1 Is so smart as u r
Reply With Quote
  #4 (permalink)  
Old 01-19-2010, 04:19 AM
mande500 mande500 is offline
Registered User
 
Join Date: Jan 2010
Posts: 2
change every $HTTP_POST_VARS['...'] into $_POST
and every $HTTP_GET_VARS['...'] into $_GET
Reply With Quote
Reply

Bookmarks

Thread Tools
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -5. The time now is 09:28 AM.





Acceptable Use Policy

Internet.com
The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0