23, November 2008

Undefined offset - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Access_user Class (Moderator: Olaf)
Topic: Undefined offset
« previous next »
Pages: [1] Print

Author Topic: Undefined offset  (Read 893 times)
Atari ST fan
*
Posts: 7
54 credits
Members referred : 0


« on: Jun 18, 2006, 06:52:45 AM »

Hi Olaf

I've just noticed this error appears when I submit the form to update user profile.

Notice: Undefined offset: 1 in / [path to] /access_user_class.php on line 285

Notice: Undefined offset: 2 in / [path to] /access_user_class.php on line 285

this is the line in question
Code:
$time = mktime(0, 0, 0, $date_parts[1], $date_parts[0], $date_parts[2]);

I don't think I've seen this error before, it is most probably is something I have done - however, I tried to revert back to the original files to no avail (access_user_class.php, update_user_profile.php).

Any ideas how to fix this? Everything else seems to work. Despite this error the user profile is updated successfully.

Thanks in advance


Atari ST fan
*
Posts: 7
54 credits
Members referred : 0


« Reply #1 on: Jun 18, 2006, 07:47:13 AM »

I've just found out the errors disappear when I type a date (e.g. 18-06-2006) into the date form field...
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6441
39470 credits
Members referred : 374


It's time to use PHP5!


« Reply #2 on: Jun 18, 2006, 10:34:44 AM »

I've just found out the errors disappear when I type a date (e.g. 18-06-2006) into the date form field...

right you need a full date notation (like in the example)


Last blog : Just a better Internet portal provided by Google
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=2922
Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Access_user Class (Moderator: Olaf)
Topic: Undefined offset
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Nov 23, 2008, 01:38:01 PM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 37.756
Total Topics: 7.652
Total Members: 4.400
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: GregH

32 Guests, 6 Users online :

11 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2008 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.