Current location: Hot Scripts Forums » Programming Languages » PHP » undefined function??


undefined function??

Reply
  #1 (permalink)  
Old 10-22-04, 07:35 PM
Tee Tee is offline
New Member
 
Join Date: Oct 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
undefined function??

Hi,

I'm new here and have searched here in the forums trying to find an answer before posting, but had no luck. I've *VERY* new to PHP/MySQL and I have to update a cardiology site that I built/host. I'm trying to set a register/login/etc set up on the site. And being so new to PHP, I'm dumbfounded by it all!

Here is the problem.

When I go to "login" on the site, it comes up and I put in username and password then click the login button it takes me to a page with the following error:

Fatal error: Call to undefined function: my_error_handler() in *** \mysql_connect.php on line 16

(Note: The *** are just the name of my site/folder)

Here is line 16 of my mysql_connect.php code that the error on the page seems to be pointing to:

my_error_handler (mysql_errno(), 'Could not select the database: ' . mysql_error());

Any help... or a bucket to catch my head as it explodes, would be most appreciated!

Thanks,

Tee
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 10-22-04, 08:51 PM
moronovich moronovich is offline
Junior Code Guru
 
Join Date: Oct 2004
Posts: 460
Thanks: 0
Thanked 0 Times in 0 Posts
hello Tee,
welcome to this forum

based on your problem, i can only say that you miss a piece of code to include the function (maybe, it's in different file). my_error_handler is not php function by default, so you have to search where the function is written.
__________________
just an ignorant noob with moronic solution...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 10-22-04, 10:23 PM
Tee Tee is offline
New Member
 
Join Date: Oct 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by moronovich
hello Tee,
welcome to this forum

based on your problem, i can only say that you miss a piece of code to include the function (maybe, it's in different file). my_error_handler is not php function by default, so you have to search where the function is written.
Thank you for the welcome, and thank you for getting back to me so quickly.

I'll check my other files and see what I can find.

Thanks again!

Tee
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 10-23-04, 06:07 PM
Merovingian's Avatar
Merovingian Merovingian is offline
Newbie Coder
 
Join Date: Jan 2004
Location: Los Angeles
Posts: 61
Thanks: 0
Thanked 0 Times in 0 Posts
Have you found the the missing function in your files ?
__________________
"Duo seguere aut de via decede" ...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #5 (permalink)  
Old 10-23-04, 09:18 PM
Tee Tee is offline
New Member
 
Join Date: Oct 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Merovingian
Have you found the the missing function in your files ?
Hi! Not yet, darn life got in the way and I had to go out for a bit. But, I'm going through it with a fine tooth comb.

Since I'm sooo new to this, I'm starting at the begining and going from there. It's a learning experience, that's for sure!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fatal error: Call to undefined function mysql_connect() in C:\Core Media\test_mysql.p phpbeginner PHP 1 07-24-04 01:40 PM
PHP Error Fairnie PHP 8 06-26-04 08:15 AM
Disable form fields to be submitted RickyRod JavaScript 2 05-24-04 11:15 AM
accessing existing ISP email with a PHP webmail script. nlancaster PHP 1 01-07-04 04:28 AM
Help trim code down TheLaughingBandit JavaScript 0 09-02-03 10:50 AM


All times are GMT -5. The time now is 10:05 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.