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

mysql errors, from submit.php and index.php

Join Date: May 2006
Location: Italy
Posts: 9
Reputation: Astegiano is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 1
Astegiano's Avatar
Astegiano Astegiano is offline Offline
Newbie Poster

Re: mysql errors, from submit.php and index.php

  #3  
May 29th, 2006
The problem is in the sintax of the if statement. When you write a if clause with two argument you shoulw write it like

if ( (firt argument) || (second argument) )

I think that's the problem with your code.
You should change your code to
[php]if ((!isset($_GET['id'])) || (!is_numeric($_GET['id']))) {
die("Invalid ID specified.");
}[/php]
Reply With Quote  
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 12:42 pm.
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