Re: db insert question

From: Date: Fri, 22 Jul 2005 02:44:11 +0000
Subject: Re: db insert question
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-219174@lists.php.net to get a copy of this message
On Thu, July 21, 2005 6:52 am, JamesBenson said: > Thanks for your reply, your example demonstrates what i was doing but > does that do a MySQL query for every piece of data? > So 20 form values would be 20 db queries, would that not consume a lot > of resources? > Is their another way? Test it on your server. 20 INSERTS is pretty much chump change, really... I mean, sure, if you're server is getting SLAMMED and you are executing this page a thousand times a day or something. Otherwise, your are really NOT looking at a lot of overhead for those 20 queries. Time It. I doubt that the prepared statements give much performance boost for only 20 queries, but, again, time it on YOUR computer. -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#219174) next »