Forum Home
|
Marketplace
|
Articles
|
Blogs
|
Interviews
|
Tools
REGISTER
|
SEARCH
|
MEMBERS
|
F.A.Q.
Register Here
Forum Rules
Webmaster-Talk.com
>
Web Administration Talk
>
The Database Forum
>
Duplicating SQL values
Link Back
Thread Tools
Duplicating SQL values
06-21-2004, 02:11 AM
#
1
(
permalink
)
Duplicating SQL values
mexicomike
Registered User
Posts: 1
Talkupation:
I would like to copy a value 'userID' to a field in the same database 'pid' automatically when someone registers. I use the second as a lookup field. The userID field is an autoincrement. Can this be done?
When You
Register
, These Ads Go Away!
06-21-2004, 10:37 AM
#
2
(
permalink
)
do it in SQL
ibbo
Super Spam Talker
Posts: 880
Location: Leeds UK
Talkupation:
do go getting in a muddle using PHP when you can simply throw it some sql.
update table set table.pid = table.UserID
can be simply used from your register code.
Ibbo
« Reply to
Duplicating SQL values
Previous Thread
|
Next Thread
Webmaster-Talk.com
>
Web Administration Talk
>
The Database Forum
>
Duplicating SQL values
Thread Tools
Show Printable Version
Email this Page
Posting Rules
You
may not
post new threads
You
may not
post replies
You
may not
post attachments
You
may not
edit your posts
vB code
is
On
Smilies
are
On
[IMG]
code is
On
HTML code is
Off
Trackbacks
are
Off
Pingbacks
are
Off
Refbacks
are
Off
Webmaster Resources Marketplace:
Software Development Company
|
Webhosting.UK.com
Web Templates
|
Text Link Brokers
|
Stock Photos
Feeds:
RSS
JS
XML
Feeds for this forum:
RSS
JS
XML
Mark Forums Read
-
View Forum Leaders
-
Contact Us
-
Webmaster Forum
-
Advertise
-
Archive
-
Privacy Statement
-
Top
Page generated in
0.11368
seconds with
12
queries