You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 65 guest(s) and 1 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - How to use data from phpnuke for other programs [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
osward
Nuke Soldier
Nuke Soldier


Joined: May 30, 2003
Posts: 26

Location: Hong Kong

PostPosted: Mon Jun 23, 2003 2:49 am Reply with quoteBack to top

Hi all,

Here is what I want to do:

I want to use the register user's username, user_email, user_password when they activate their account and write it to other table in the same database.

The following is the code of function activate($username, $check_num)

Code:
if ($check_num == $row[check_num]) {
$db->sql_query("INSERT INTO ".$user_prefix."_users (user_id, username, user_email, user_password, user_avatar, user_regdate, user_lang) VALUES (NULL, '$row[username]', '$row[user_email]', '$row[user_password]', 'gallery/blank.gif', '$row[user_regdate]', '$language')");


This is the line of code I added after the above
Code:
$db->sql_query("INSERT INTO netjuke_users (email , password, name, gr_id , created, updated, nickname, web_site, img_src , last_login, login_cnt, local_music_dir ) VALUES ('$row[user_email]',  '$row[user_password]', '$row[username]', NULL, '$row[user_regdate]', '$row[user_regdate]',  '$row[username]', NULL, NULL, NULL, '0', NULL)");


The '$row[username]' etc, seems to me that it writes from the nuke_users_temp to nuke_users.

I want to use the same information and write it to the netjuke_user table that allows me to create an account for the user with the same user name, email address and password the user use for the registration of the phpnuke.

I have do a test on this but the netjuke_user table havn't add the record according.

What might be the problem of the above? please advise.

Thanks in advance for your time

Regards,
Find all posts by oswardView user's profileSend private messageVisit poster's websiteYahoo MessengerMSN MessengerICQ Number
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Thu Jul 03, 2003 12:24 pm Reply with quoteBack to top

What is the error that is being written to the server error_log?

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
osward
Nuke Soldier
Nuke Soldier


Joined: May 30, 2003
Posts: 26

Location: Hong Kong

PostPosted: Thu Jul 03, 2003 4:59 pm Reply with quoteBack to top

Problem solved, thanks
Find all posts by oswardView user's profileSend private messageVisit poster's websiteYahoo MessengerMSN MessengerICQ Number
lamjam
Nuke Soldier
Nuke Soldier


Joined: Jul 07, 2003
Posts: 32

Location: Chicago

PostPosted: Sat Jul 12, 2003 12:16 pm Reply with quoteBack to top

Hey Osward, what was the solution?

_________________
Lam Jam
------------------
Positive attitude combined with a comfortable chair, and lots of coffee - then anything is possible!
Find all posts by lamjamView user's profileSend private messageVisit poster's website
osward
Nuke Soldier
Nuke Soldier


Joined: May 30, 2003
Posts: 26

Location: Hong Kong

PostPosted: Sun Jul 13, 2003 6:09 am Reply with quoteBack to top

I had make some error on the target table's fields, so the target data table couldn't be inserted.

The concept and function where you want to create other user account depends on when you want the account be created. If you want more data use for other database table, you might add additional fields in the nuke_user_temp table.

Personally think the right time is when user activate the phpnuke account

Hope this could help

Regards,
Find all posts by oswardView user's profileSend private messageVisit poster's websiteYahoo MessengerMSN MessengerICQ Number
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.407 Seconds - 294 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::