REGISTER
|
Search Tycoon Talk
|
Freelancer.com
|
Members
Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.
Register Here
Forum Rules
PHP Forum
You are currently viewing our PHP Forum as a guest. Please
register
to participate.
Login
Remember Me?
Login via Freelancer.com
Tycoon Talk
>
Web Development and Programming Support
>
PHP Forum
>
set multiple fields with query
Link Back
Thread Tools
Search this Thread
set multiple fields with query
08-16-2008, 07:38 PM
#
1
(
permalink
)
set multiple fields with query
Truly
Ultra Talker
Posts: 322
Trades:
0
Talkupation:
What is wrong with this:
PHP Code:
mysql_query
(
"UPDATE userdb SET pass='
$pass
' AND resset='' WHERE resset='
$ref
')"
);
I cant word my question well enough to find an answer on google.
thanks
__________________
DVD Movie Release Database:
Please login or register to view this content.
Registration is FREE
Register
now for full access!
08-16-2008, 07:41 PM
#
2
(
permalink
)
Re: set multiple fields with query
SmartBomb
Average Talker
Latest Blog Post:
Wordpress Hack : How to Add a Yahoo Buzz Button to...
Posts: 27
Name: Dave
Trades:
0
Talkupation:
It should be..
mysql_query
(
"UPDATE userdb SET pass='$pass', resset='' WHERE resset='$ref')"
);
__________________
Please login or register to view this content.
Registration is FREE
Please login or register to view this content.
Registration is FREE
Please login or register to view this content.
Registration is FREE
Please login or register to view this content.
Registration is FREE
08-16-2008, 07:48 PM
#
3
(
permalink
)
Re: set multiple fields with query
Truly
Ultra Talker
Posts: 322
Trades:
0
Talkupation:
aaa I knew I was doing something wrong, I remember being corrected on something similar not to long ago.
Ok thanks!
__________________
DVD Movie Release Database:
Please login or register to view this content.
Registration is FREE
08-16-2008, 08:01 PM
#
4
(
permalink
)
Re: set multiple fields with query
SmartBomb
Average Talker
Latest Blog Post:
Wordpress Hack : How to Add a Yahoo Buzz Button to...
Posts: 27
Name: Dave
Trades:
0
Talkupation:
You have to use a comma to seperate fields on the left hand side of the WHERE clause, whereas 'AND' is used on the right hand side to seperate qualifiers.
__________________
Please login or register to view this content.
Registration is FREE
Please login or register to view this content.
Registration is FREE
Please login or register to view this content.
Registration is FREE
Please login or register to view this content.
Registration is FREE
« Reply to
set multiple fields with query
Previous Thread
|
Next Thread
Tycoon Talk
>
Web Development and Programming Support
>
PHP Forum
>
set multiple fields with query
Thread Tools
Search this Thread
Show Printable Version
Email this Page
Search this Thread
:
Advanced Search
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
On
HTML code is
Off
Trackbacks
are
Off
Pingbacks
are
Off
Refbacks
are
Off
Forum Rules
Feeds:
RSS
JS
XML
Feeds for this forum:
RSS
JS
XML
LinkBack
LinkBack URL
About LinkBacks
Bookmark & Share
Digg this Thread!
Add Thread to del.icio.us
Bookmark in Technorati
Tweet this thread
Page generated in
0.13568
seconds with
12
queries