hi all,
When creating a database query should an int value be inside quotes??
e.g. $query = "SELECT * FROM tbl WHERE id = '$id' ";
Is the above the correct way or is this one correct...
$query = "SELECT * FROM tbl WHERE id = $id ";
id is stored as integer in database
thanks.