Wrox Programmer Forums
|
BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8
This is the forum to discuss the Wrox book Professional CodeIgniter by Thomas Myer; ISBN: 9780470282458
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 9th, 2010, 12:27 AM
Registered User
 
Join Date: Feb 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default batchUpdate count not correct

Working with the batch update.

Code:

PHP Code:
if (count($this->input->post('p_id'))){ update }else{ ! update 
evaluates to a value of 1 for 0 products selected.
evaluates to a value of 1 for 1 products selected.
evaluates to a value of 2 for 2 products selected.

gives correct value for all products selected greater than 0

all code seems to be correct from pages 190 - 193

The function works correctly unless there are 0 products selected

Any suggestions would be appreciated.

Thanks
Tom





Similar Threads
Thread Thread Starter Forum Replies Last Post
is there any in built function to count page count g.tamilselvan MySQL 1 February 15th, 2006 07:43 AM
Count, sum, count a value, return records CongoGrey Access 1 April 18th, 2005 02:25 PM
SQL count query not giving correct results hman SQL Language 2 March 16th, 2005 07:06 AM
SQL count query not giving correct results hman SQL Server 2000 1 March 15th, 2005 01:15 PM
disconn recordset when batchUpdate not supported texasraven ADO.NET 0 February 12th, 2004 12:40 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.