barniegilly Posted April 20, 2011 Share Posted April 20, 2011 Hi I am new to php, I am trying to capture the url and place into a variable but I only get the 1st digit to show, I just cant see what I am doing wrong. :'( Sorry to ask such a basic question but I just can't work it out, I have attached a screen shot of all me code, your help would be very very much appreciated. [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/234295-problems-in-returning-_get-from-url-only-returning-1-digit/ Share on other sites More sharing options...
Muddy_Funster Posted April 20, 2011 Share Posted April 20, 2011 it's just echo $url_event_id; NOT echo $url_event_id['url_event_id']; and please post up your code within the php tags next time, I can't view an attachment while writing a reply... Quote Link to comment https://forums.phpfreaks.com/topic/234295-problems-in-returning-_get-from-url-only-returning-1-digit/#findComment-1204201 Share on other sites More sharing options...
barniegilly Posted April 20, 2011 Author Share Posted April 20, 2011 Thank you very much, had to be something simple, very appreciated and its great to find a good forum to join for php, will make sure I add the code next time Quote Link to comment https://forums.phpfreaks.com/topic/234295-problems-in-returning-_get-from-url-only-returning-1-digit/#findComment-1204205 Share on other sites More sharing options...
Pikachu2000 Posted April 20, 2011 Share Posted April 20, 2011 Yes, posting code is the way to do it. It's impossible to paste a screenshot into an IDE to debug someone else's code . . . Quote Link to comment https://forums.phpfreaks.com/topic/234295-problems-in-returning-_get-from-url-only-returning-1-digit/#findComment-1204207 Share on other sites More sharing options...
Muddy_Funster Posted April 20, 2011 Share Posted April 20, 2011 you're welcome, and this is a good forum, there are a lot of verry good coders on here - of which I am not one, but I can help with the basics now and then Quote Link to comment https://forums.phpfreaks.com/topic/234295-problems-in-returning-_get-from-url-only-returning-1-digit/#findComment-1204210 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.