Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8
|
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 September 27th, 2009, 01:16 AM
Authorized User
 
Join Date: Sep 2009
Posts: 22
Thanks: 2
Thanked 0 Times in 0 Posts
Default Where does the values of $categories came from

Hi all, does anyone know where the values of $categories came from as in this code

Code:
echo "<p><label for='parent'>Category Parent</label><br/>";
echo form_dropdown('parentid',$categories) ."</p>";
Thanks a lot...
 
Old September 28th, 2009, 08:26 AM
Wrox Author
 
Join Date: May 2008
Posts: 53
Thanks: 0
Thanked 5 Times in 5 Posts
Default the best way to find out is.....

if you look at what controller/function is calling this view, there should be a line like this:

$data['categories'] = ........;

the ...... part should have a call to a model and function....that way you can go see what the query is....
__________________
Thomas Myer
Author, Professional CodeIgniter
http://www.tripledogs.com
The Following User Says Thank You to myerman For This Useful Post:
handoyo (September 28th, 2009)
 
Old September 28th, 2009, 09:06 AM
Authorized User
 
Join Date: Sep 2009
Posts: 22
Thanks: 2
Thanked 0 Times in 0 Posts
Default Thanks

Thanks a lot myerman..I'll look it.. ^_^





Similar Threads
Thread Thread Starter Forum Replies Last Post
creating sub categories? melkin Classic ASP Professional 1 August 30th, 2009 11:17 AM
Sub Categories for Forum- tectrix BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 9 May 21st, 2008 05:25 PM
Unlimited categories golden_drifter Access 2 August 31st, 2006 07:21 AM
Deleting Categories spardoe BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 4 July 19th, 2006 03:07 AM
Need help : how to query multiple categories will2kready SQL Language 0 January 10th, 2006 09:37 PM





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