LOL.. That because you tried to echo the array... in above code, it should be this... foreach ($href as $classhref) { echo "Grab: "....
maybe perform some checking of the name that was grabbed? such as $mystring = (strlen($mystring) == 2) ? $mystring : ""; since the string you...
Here preg_match_all('#<a[^>]*class="g-asm"[^>]*href="(.+?)"[^>]*>(.+?)</a>#is', $contents_of_page, $classgasm, PREG_SET_ORDER);
Oh, thanks to point out that... :) it should be this then $shedeg = trim($shedeg, ", ");
If you can understand the above code, then you only need assign the variable first, for example if($parameter == 'OK') to $parameter =...
Or use trim, for example: $shedeg = trim($shedeg, ",");
LOL, that didn't search the href... I thought you want to learn it yourself so I explained the previous regex. :) And well, we need to know which...
There is a lot of source to learn regex in Google, try some search... :) Here I give some explanation on previous regex,...
It would be simpler, try this one: preg_match_all('#<a[^>]*class="g-asm"[^>]*>(.+?)</a>#is', $contents_of_page, $classgasm, PREG_SET_ORDER);...
Oh, well, I do a little search and I think I know what you were tried to accomplish... :) Here is the code I just write:...
nah, since you didn't give the example of string, I don't know how can I help you more, the result you copied is pretty weird... Well, you can...
Try echo the $line and see if you get the correct string to compare... In addition, it usually better to trim the string before send it to query,...
Hmm... what kind of script and what error?
hmm... can you give the example of the string you want to match? it's hard to do it without actually seeing the string...
The easy way is to pass id to the next page, for example, the button can linked to send.php?id=xx where the id is the selected user unique id....
Separate names with a comma.