Thread: Resolved My SQL Database PHP Inquiry
View Single Post
Old 12-06-2012, 02:55 AM   PM User | #10
logepoge1
New Coder

 
Join Date: Oct 2012
Posts: 44
Thanks: 3
Thanked 0 Times in 0 Posts
logepoge1 is an unknown quantity at this point
Quote:
Originally Posted by Old Pedant View Post
The % here is a mistake:
Code:
	AND orders.OrderID = '" . $_GET['order'] . "%'
Also the '...' around $_GET['order'] is a mistake if ORDERID is always a number.

Plus you need to "sanitize" the $_GET value, to prevent SQL injection.
I figured it out before this. But thanks anyways.
logepoge1 is offline   Reply With Quote