| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| New Member Join Date: Jun 2009
Posts: 2
![]() | having a undifine index id error help Notice: Undefined index: id in C:\wamp\www\shoes\menu2prueba.php on line 148 I am getting this error can any body help PHP Code: |
| | |
| | #2 (permalink) |
| NamePros Member Join Date: Sep 2006
Posts: 99
![]() ![]() | That's not an error, it's a notice. It basically means there's something in your code that isn't perfect. "Undefined Index" means that in one of your mysql results, there is a lack of the 'id' row. You can stop this from being reported in php.ini or using PHP: error_reporting - Manual Bruce |
| | |
| | #3 (permalink) |
| NamePros Regular Join Date: Jul 2007 Location: UK
Posts: 395
![]() ![]() ![]() ![]() ![]() ![]() ![]() | mysql_fetch_row returns an array with numerical keys (so $row3['id'] will never be defined). You might want to use mysql_fetch_array instead. This returns an array with numerical and MySQL column names by default.
__________________ |
| | |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| List 200+ free web directories | Stoun | Free Resources | 7 | 09-06-2009 11:20 AM |
| Nikkei225.com on Ebay (1 day left) - The Japan Stock Index Average | Infinity | Domains For Sale - External Auctions | 0 | 01-19-2007 03:18 AM |
| Software Index script ($1 for NP members) | coolguyz | Scripts For Sale | 0 | 08-23-2006 02:45 PM |
| #1 Rated Link Script on CGI Resource Index! | Ferman | Scripts For Sale | 3 | 01-18-2006 02:28 PM |