Welcome Guest, Not a member yet? Register   Sign In
URI Segments only grabbing first number
#4

[eluser]Phil Sturgeon[/eluser]
[quote author="redlogic" date="1284575098"]Story of my life :roll:

Thanks for the post, I thought there must be a simpler way of doing it, I just, well, didn't know what it was.

I could still use some help on the original question about why the
Code:
$this->uri->segment(2)
is only using the first digit in the string.

Any ideas?[/quote]

You are accessing a string (even if it contains a number, its a string) via array syntax:

Code:
$get = $this->uri->segment(3); // 39
$rec_value = $get['record']; // God knows what PHP will try and do here


Messages In This Thread
URI Segments only grabbing first number - by El Forum - 09-15-2010, 05:10 AM
URI Segments only grabbing first number - by El Forum - 09-15-2010, 06:08 AM
URI Segments only grabbing first number - by El Forum - 09-15-2010, 07:24 AM
URI Segments only grabbing first number - by El Forum - 09-15-2010, 07:53 AM
URI Segments only grabbing first number - by El Forum - 09-15-2010, 08:50 AM



Theme © iAndrew 2016 - Forum software by © MyBB