Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

query
$query = "update reactie,form set 'reactie.persemail' = 'form.email' where
'reactie.persid' = 'form.id'  AND reactie.persemail='' ";

How can i get this query to work?

Irlan



Report this thread to moderator Post Follow-up to this message
Old Post
Irlan agous
05-09-05 08:58 PM


Re: query
On Mon, 09 May 2005 15:01:34 +0200, Irlan agous wrote:

> $query = "update reactie,form set 'reactie.persemail' = 'form.email' where
> 'reactie.persid' = 'form.id'  AND reactie.persemail='' ";
>
> How can i get this query to work?
>
> Irlan

$query = "update reactie,form set reactie.persemail = form.email where
reactie.persid = form.id  AND reactie.persemail='' ";

Report this thread to moderator Post Follow-up to this message
Old Post
coolsti
05-09-05 08:58 PM


Re: query
Thanks but it doesnt work,

when i try this:

$query = "update reactie,form set reactie.persemail = form.email where
reactie.persid = form.id  AND reactie.persemail='' ";

$query_result= mysql_query($query) or die ("can not change the data");

It gives me cant change the data
"sti" <coo@nospam.com> schreef in bericht
news:pan.2005.05.09.13.13.30.482038@nospam.com...
> On Mon, 09 May 2005 15:01:34 +0200, Irlan agous wrote:
> 
>
> $query = "update reactie,form set reactie.persemail = form.email where
> reactie.persid = form.id  AND reactie.persemail='' ";



Report this thread to moderator Post Follow-up to this message
Old Post
Irlan agous
05-09-05 08:58 PM


Re: query
On Mon, 09 May 2005 16:00:06 +0200, Irlan agous wrote:

> Thanks but it doesnt work,
>
> when i try this:
>
> $query = "update reactie,form set reactie.persemail = form.email where
> reactie.persid = form.id  AND reactie.persemail='' ";
>
> $query_result= mysql_query($query) or die ("can not change the data");
>
> It gives me cant change the data
> "sti" <coo@nospam.com> schreef in bericht
> news:pan.2005.05.09.13.13.30.482038@nospam.com... 

Then maybe until you get things working you should remove your "or die"
clause and allow mysql to report the actual error message to your screen.
Then you can begin to debug what is wrong.

Note that I didn't check to see if my suggested syntax was correct when
you are trying to do an update with two tables in the update clause. Also
note that this is only allowed for newer versions of mysql. If you have an
older version it might not allow this.



Report this thread to moderator Post Follow-up to this message
Old Post
coolsti
05-09-05 08:58 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP SQL archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 09:44 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.