Welcome Guest, Not a member yet? Register   Sign In
Displaying Single Results -- Stumped, but I know the answer is probably right in front of me =)
#5

[eluser]Rick Jolly[/eluser]
You have your quotes mixed up:
Code:
// this:
$query = $this->db->query('SELECT * FROM test WHERE ques_num = "$urlSegment"');
// should be this:
$query = $this->db->query("SELECT * FROM test WHERE ques_num = '$urlSegment'");
You should use query bindings to prevent sql injection.


Messages In This Thread
Displaying Single Results -- Stumped, but I know the answer is probably right in front of me =) - by El Forum - 02-03-2008, 12:01 PM



Theme © iAndrew 2016 - Forum software by © MyBB