Jordan Palmer Posted November 23, 2010 Posted November 23, 2010 I haven't contributed properly in a while, so I thought I'd take the time to today, now this isn't anything major and I only just noticed it really so I decided it'd share it with others. UPDATES: Makes sure the ID GET is a numeric number Make sure the crime exists As I said earlier nothing major, Just much nicer then a user going to the page and getting nothing just the outlay You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Rasheed saeed Posted November 23, 2010 Posted November 23, 2010 Nice little update Jordan. :) I don't know why your using brackets on your echo, but if it works, it works. Quote
Jordan Palmer Posted November 23, 2010 Author Posted November 23, 2010 It's a nasty habbit I make, even though I wouldn't think it'd make too much of a difference really.. Quote
Danny696 Posted November 23, 2010 Posted November 23, 2010 '.number_format($r['oclMONEY']).''); Why not just leave it at ....'])); ? Quote
Equinox Posted November 23, 2010 Posted November 23, 2010 echo and print will both work without the parentheses - by using brackets you're making it a function and most people believe that they are functions, but they're not. And Jordan, good job. Was just explaining to the question asked up ^ there Quote
Jordan Palmer Posted November 23, 2010 Author Posted November 23, 2010 '.number_format($r['oclMONEY']).''); Why not just leave it at ....'])); ? Didnt see much of a point. Fine how it is Quote
Jordan Palmer Posted November 23, 2010 Author Posted November 23, 2010 echo and print will both work without the parentheses - by using brackets you're making it a function and most people believe that they are functions, but they're not. And Jordan, good job. Was just explaining to the question asked up ^ there Yeah, Alot of people do. I don't personally but its a habbit that I keep making Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.