28, May 2012

Problems with the class - webmaster forum

 
Webdigity webmaster forums
[ 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: Problems with the class
« previous next »
Pages: [1] Print

Author Topic: Problems with the class  (Read 1891 times)
Chicken-run Manager
*
Posts: 9
62 credits
Members referred : 0


« on: Jul 31, 2007, 01:38:12 pm »

Hi Olaf

i getting this error when the update_user_profile.php is loaded
Quote
Notice: Use of undefined constant UPDATE_PROFILE - assumed 'UPDATE_PROFILE' in /home/hartkdbd/www.domain.com/classes/access_user/update_user_profile.php on line 5

The Line 5 in this document $update_profile = new Users_profile(false);

An another error or functionality that disturb my design is, when i click on "update" in update_user_profile.php then a new line is showing above the table.

Quote
UPDATE xxxx_xxxx_db.users_profile SET language='', strasse='street', plz='postcode', ort='city', country='', telefon='phone', handy='mobile', geburtstag='birthday', bild='xxxx.jpg', eintritt='date', user_1='', user_2='', user_3='', user_4='', last_change=NOW() WHERE id = '1' AND users_id = 37

Olaf do you have any idea what wrong with the script?

Notice: All Variables will be updated in the DB

Thanks for help
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: Jul 31, 2007, 01:56:15 pm »

do you change the table fields in the class?

check this thread
http://www.webdigity.com/index.php/topic,2345.0.adding+new+fields+to+the+profile+table.html

Chicken-run Manager
*
Posts: 9
62 credits
Members referred : 0


« Reply #2 on: Jul 31, 2007, 02:10:16 pm »

I copied your files to my webserver. And i getting the same errors

Any more ideas?

Notice:
ext_user_profile.php (originally)
update_user_profile.php (originally)

Database: i used your SQL File

Any Ideas?
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #3 on: Jul 31, 2007, 02:18:18 pm »

check the used names used in the provided files and the database, what you have posted above

"UPDATE xxxx_xxxx_db.users_profile SET language='', strasse='street', plz='postcode', ort='city', country='', telefon='phone', handy='mobile', geburtstag='birthday', bild='xxxx.jpg', eintritt='date', user_1='', user_2='', user_3='', user_4='', last_change=NOW() WHERE id = '1' AND users_id = 37"

is not mine Smiley

Chicken-run Manager
*
Posts: 9
62 credits
Members referred : 0


« Reply #4 on: Jul 31, 2007, 02:32:46 pm »

Yes your right!! Not at this time!!

But i replaced my modified files with yours, but i get the same error  Smiley

The only thing that i modified is this "error_reporting (E_ALL);
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=6966
Tags : error undefined constant Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Access_user Class (Moderator: Olaf)
Topic: Problems with the class
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 10:18:46 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!






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