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 Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-03-2009, 05:59 AM
nimanor nimanor is offline
Registered User
 
Join Date: Oct 2009
Posts: 1
Error in Sentry.php (line 65)

Hi,

First of all I would like to say thank you very much for creating this excellent tutorial!
I have now finished Step 5, and everything seemed fine until I tried to login.

Actually, I'm able to login, but then I receive this error message:

PHP Code:
Fatal error: Call to undefined method DbConnector::getNumRows() in My-Site/includes/Sentry.php on line 65
Line 65 is this one:
PHP Code:
if ($loginConnector->getNumRows($getUser) > 0){
Any ideas?
Thank you very much
Reply With Quote
  #2 (permalink)  
Old 11-05-2009, 07:36 PM
jaimenacach jaimenacach is offline
Registered User
 
Join Date: Nov 2009
Posts: 1
Smile

Hello,

I'm not very experienced with Php, but have succesfully completed the Tutorial.

My DbConnector.php file uses connections that read mysqli_something(....

rather than what the book uses which is mysql_somethi(... for each function.

NOTE: There is an extra "I" after my mysql in my functions, all of them are like this. I'm not sure why, but my first PHP book always use mysqli, not mysql.

Do note you must have MYSQLI enabled in PHP for it to work, and add the mysqli.dll to your windows registry file c:/windows/system32/, if you have windows.

Hope that helps, otherwise, lets hope a real expert answers your question.

MAke sure you provide theCODE of your dbconnector.php file.

take care
Reply With Quote
  #3 (permalink)  
Old 12-09-2009, 08:09 AM
q5host q5host is offline
Registered User
 
Join Date: Dec 2009
Posts: 5
I have It as well some1 knows the solution ?
Reply With Quote
Reply

Bookmarks

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

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:08 PM.





Acceptable Use Policy


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