Re: running multiple updates on a single line

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Could any of these lines cousing an error?

"Ryan A" <genphp@xxxxxxxxx> escreveu na mensagem 
news:20060704012957.16338.qmail@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hi,
> in phpmyadmin, in the SQL part where you can write a
> query if I have a double update such as this:
>
>
> it works without a problem as I am ending each sql
> statement with a simicolon, but in my scripts when I
> try to run multiple updates in a single line
>
> eg:
> $xyz="update xyz set id=1 where id=0;update xyz set
> id=3 where id=2;";
>
>
> it does not work... any idea why?
>
> Thanks!
> Ryan
>
>
> ------
> - The faulty interface lies between the chair and the keyboard.
> - Creativity is great, but plagiarism is faster!
> - Smile, everyone loves a moron. :-)
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux