Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > it.comp.www.php > #20875

Re: istruzioni update in unico script

Path csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Alessandro Pellizzari <shuriken@amiran.it>
Newsgroups it.comp.www.php
Subject Re: istruzioni update in unico script
Date 1 Jun 2016 07:05:04 GMT
Lines 13
Message-ID <dr7fp0Fi87iU1@mid.individual.net> (permalink)
References <2016053116353521718@mynewsgate.net> <bb4784e0-9c4d-4a61-97b8-1553714e5853@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 8bit
X-Trace individual.net akxY72VgoslsqZtSySUkWQTkTK18PIuhO9XZISGIQN1cryZQ4=
Cancel-Lock sha1:NYox4c5SJuRpREikqDuIwoa6DZ8=
User-Agent Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2)
Xref csiph.com it.comp.www.php:20875

Show key headers only | View raw


Il Tue, 31 May 2016 14:53:17 -0700, fmigliori ha scritto:

>> $query  = "UPDATE tabella SET campo ='f' WHERE id='1';";
>> $query .= "UPDATE tabella SET campo ='k' WHERE id='4';";
>> $query .= "UPDATE tabella SET campo ='h' WHERE id='5' ";
>> 
>> mysqli_multi_query($query);

> o eseguire venti mysqli_query, non fa differenza.

O usare PDO con una prepared statement, che ci mette anche meno. :)

Bye.

Back to it.comp.www.php | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

istruzioni update in unico script "Halnow" <21718invalid@mynewsgate.net> - 2016-05-31 16:35 +0000
  Re: istruzioni update in unico script RedWiz <redwiz@inwind.it> - 2016-05-31 17:04 +0000
  Re: istruzioni update in unico script Leonardo Serni <lserni@gmail.com> - 2016-05-31 21:50 +0200
  Re: istruzioni update in unico script fmigliori <fmigliori@gmail.com> - 2016-05-31 14:53 -0700
    Re: istruzioni update in unico script Alessandro Pellizzari <shuriken@amiran.it> - 2016-06-01 07:05 +0000

csiph-web