-
Posts
58 -
Joined
-
Last visited
Everything posted by rastaman46
-
Thanks for your time im ill take over here Thanks for your time
-
Thanks works but haw do im add extra info in here GROUP_CONCAT(t2.chosen_team SEPARATOR ', ') im still want to display member id and bett size next to name ???
-
First table Table 2 here what im trying to do
-
Hey and thanks for replay its most look my target but only get one result? Im got more then one name in it
-
Hey again well im trying to call 2 tables from sql "t1" content name "t2" got all records im matching them up by ID but result im get its row me in single rows Same name comes up few times diferent info same name but i need if name is same and have few recods im like to display like this "Name"-->first-->second-->and so on not like "Name" --> first "Name" --> second "Name" -->and so on did im was clear???
-
Love u man Big thanks
-
source im taking it from is shoutcast DNSA server XML file var_bump return this string(13) "141.237.52.41" string(12) "86.1.223.181"
-
Im tryd use explode like this $hmm = $listeners['LISTENERS']['HOSTNAME']; $ip = explode(" " ,$hmm); echo $ip; output = array array
-
yes
-
Yes its array foreach ($returnStats['listener'] as $listener) { $listeners['LISTENERS'] = array( 'HOSTNAME' => (string) $listener->HOSTNAME, 'USERAGENT' => (string) $listener->USERAGENT, 'CONNECTTIME' => (string) $listener->CONNECTTIME, 'POINTER' => (string) $listener->POINTER, 'UID' => (string) $listener->UID, ); echo $listeners['LISTENERS']['HOSTNAME']; }
-
I need get users from sql by matching ip up where userip In ('141.237.52.41','86.1.223.181') Like this output im get im can do this
-
Hello im here again im just strugling to add comma between Ip adresses im get result in array like this "141.237.52.41 86.1.223.181" but i need "141.237.52.41,86.1.223.181" Im tryd implode but no succes
-
Im noob on arrays so please help people here is output im get Array ( [fieldType] => input [config] => Array ( [setting] => 10 [setting1] => 20 ) ) how to im get value in PHP variable im tryd "$config['setting']" but get me nothing [fieldType] => input [config] call me field do works but not rest Please just guid me up im beginning in this world!!!
-
Any one?
-
got this code but struggling to get php side working dont know how php have to look like please help or advise me thanks!!! $('#create_shout').submit(function(e) { e.preventDefault(); var $message = $.TSUE.urlEncode(tinyMCE.activeEditor.getContent()); if($message === '') { $.TSUE.alert(TSUEPhrases['message_required_fields_error']); return false; } buildQuery = 'action=create_shout&message='+$message+'&securitytoken='+TSUESettings['stKey']; $.ajax( { url:TSUESettings['website_url']+'/ajax/shoutpost_ajax.php', data: buildQuery, success: function(serverResponse) { if(!$.TSUE.findresponsecode(serverResponse)) { $.TSUE.alert(TSUEPhrases['message_posted']); $.TSUE.jumpInternal('?p=shoutpost&pid=502'); return false; } else { $.TSUE.dialog(serverResponse); } } }) }); and php function create_shout(){ $date = TIMENOW; $memberid = $TSUE['TSUE_Member']->info['memberid']; $message = addslashes($_POST['message']); $add = $TSUE['TSUE_Database']->query("INSERT INTO `rasta_shout_post`(`sid`, `date`, `memberid`, `message`) VALUES ('','$date','$memberid','$message')"); }
-
PHP Deprecated: Function ereg_replace() is deprecated in
rastaman46 replied to rastaman46's topic in Regex Help
Thanks for replay after $$scphp = preg_replace("\<{$loop[$y]}\>/.*", "", $pageed); but get error "Delimiter must not be alphanumeric or backslash in" -
PHP Deprecated: Function ereg_replace() is deprecated in
rastaman46 replied to rastaman46's topic in Regex Help
Hello again and sorry for my noob questions but just cant get it working once im use your example its just stop working -
PHP Deprecated: Function ereg_replace() is deprecated in
rastaman46 replied to rastaman46's topic in Regex Help
thanks again now got problem with this one :'( $$scphp = ereg_replace("</$loop[$y]>.*", "", $pageed); -
PHP Deprecated: Function ereg_replace() is deprecated in
rastaman46 replied to rastaman46's topic in Regex Help
thanks for replay but if im use your exemple im get Warning: preg_replace() [function.preg-replace]: Unknown modifier 'g' in -
Hello got some problems with it if im change to "preg_replace its just stop working my php version is 5.3.10 Please help $loop = array("AVERAGETIME", "CURRENTLISTENERS", "PEAKLISTENERS", "MAXLISTENERS", "SERVERGENRE", "SERVERURL", "SERVERTITLE", "SONGTITLE", "SONGURL", "IRC", "ICQ", "AIM", "WEBHITS", "STREAMHITS", "LISTEN", "STREAMSTATUS", "BITRATE", "CONTENT"); $y=0; while($loop[$y]!=''){ $pageed = ereg_replace(".*<$loop[$y]>", "", $page); $scphp = strtolower($loop[$y]); $$scphp = ereg_replace("</$loop[$y]>.*", "", $pageed); // uncomment the next line to see all variables //echo'$'.$scphp.' = '.$$scphp.'<br>'; $y++; }