Re: Undefined Index ...confusion
| From: | Kyle Smith | Date: | Thu, 23 Jul 2009 14:24:07 +0000 |
| Subject: | Re: Undefined Index ...confusion | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-295752@lists.php.net to get a copy of this message | ||
Miller, Terion wrote:
I keep getting this error while trying to use the field 'ID' to pass in a url.. And it's odd because the query is pulling everything BUT the ID which is the first field... code: <a href="view.php?ID=<?php echo $_SESSION['fullRestaurantList']['ID']?>"><?php echo htmlspecialchars(stripslashes($_SESSION['fullRestaurantList'][$i]['name'])); ?> We're going to need to know how the $_SESSION['fullRestaurantList'] gets populated. Also, where do you define $i? Is $i the ID? Seemed like you've built an array of arrays and you may want $_SESSION['fullRestaurantList'][$i]['ID'], or just $i. This is all speculation from the 2 lines of code I've seen though.- Kyle