|
Thanks for the tip. Now, I have another problem.
When i use the '$_GET['id']' to get the id number I want, I was not just an interger. For example, if I get the id '12' from the url, and when I use echo to display it, its not just 12. It was "12". A twelve with a Double Quote.
I strip the doublequote with substr( $theID,1,1). This work just fine for id 1-9. For example $theID=9, substr( $theID,1,1) will return 9. But if $theID=12, substr( $theID,1,1) will return 1. $theID=32, substr( $theID,1,1) will return 3. Yes....it will only return the first number.
Is there any other function in php to only strip the doublequote?, or does anyone have any personally created function to strip the doublequote?
|