RSS Forums RSS
Please support our PHP advertiser: Lunarpages PHP Web Hosting

Undifined Index in PHP code

Join Date: Feb 2007
Location: Palmerston North, New Zealand
Posts: 16
Reputation: WhiteLeo is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 2
WhiteLeo's Avatar
WhiteLeo WhiteLeo is offline Offline
Newbie Poster

Re: Undifined Index in PHP code

  #3  
May 1st, 2007
I'm not exactly sure. However, there is a way to get the query to say if there is an error with that.

[PHP]if(!$result){die(mysql_query());} // This will halt the script and display the sql error if the query failed to run[/PHP]

You should be able to then see if you have some sort of error with your query, or if it is because of something else.
Reply With Quote  
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 5:08 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC