Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 2 years ago.
Improve this question
This is my LOCAL URL:
http://localhost/wbdrupal/?url=http://werkbad-konfigurator.de/datahub/searchObjectByID?table=furniture&column=wbid&search=
when I echo this variable $_GET['url'];
then the output is http://werkbad-konfigurator.de/datahub/searchObjectByID?table=furniture
but I need output as http://werkbad-konfigurator.de/datahub/searchObjectByID?table=furniture&column=wbid&search=
I need full query string when I write this command: echo $_GET['url'];
Your URL is malformed and can't be parsed. The system has no way of knowing which key/value pairs belong to the actual URL or to the url value you're trying to submit.
You need to URL-encode your values so the system can know what the key/value pairs are:
http://localhost/wbdrupal/?url=http%3A%2F%2Fwerkbad-konfigurator.de%2Fdatahub%2FsearchObjectByID%3Ftable%3Dfurniture%26column%3Dwbid%26search%3D
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 5 years ago.
Improve this question
Could someone please point me where did I go wrong?
I've an apps using PHP and mysql. The thing is, we are using some file uploader plugins that require us to save the unique id that has format something like this a41ddc78-3fee-4bf3-88c1-83028ae22f1. At some point, I need to select data from the database using this fields and as you can see, I can't get the field when I do manual query on it. any help is appreciate on how to solve this problem. Thank you
SELECT * FROM product_image WHERE unique_id = 'a41ddc78-3fee-4bf3-88c1-83028ae22f1'
the query works fine...
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 6 years ago.
Improve this question
I am trying to create an image that changes dependent on the genre grabbed from an icecast server, I am pretty sure I have the base code correct I think I've just incorrectly inputted the PHP variable.
<?php
$stats = $core->radioInfo( "http://http://sc.onlyhabbo.net:8124/status-json.xsl" );
?>
<img src=http://www.habbo.com/habbo-imaging/avatarimage?user=<?php
echo $stats['genre'];
?>&action=std&direction=2&head_direction=2&gesture=sml&size=m&img_format=gif/>
is the full code. Have I inputted the PHP variable incorrectly
Where are the quotes in your Html?
<img src="http://www.habbo.com/habbo-imaging/avatarimage?user=<?php
echo $stats['genre'];
?>&action=std&direction=2&head_direction=2&gesture=sml&size=m&img_format=gif"/>
UPDATE EVERYBODY
This is now resolved, I decided to go down the CURL route for this, and at first it didn't work until my host raised our CloudLinux Process Limit. I am unsure what the actual issue with this code was, but the CURL route works fine. Thank you for any answers
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 8 years ago.
Improve this question
foreach($db->fetch_array("SELECT id_categories FROM csn_categories_join_kartes where id_kartes===".$card['id']."") as $kat){
echo (kat['id_categories']);
}
table cols and values are all matched, something is wrong in this part of code
I tried adding $ before kat and using only one "=", sill doesnt work
NEW LINK
http://pastebin.com/RPK7vEaJ
this
where id_kartes===".$card['id']."
would be
where id_kartes=".$card['id']."
and missing $
echo $kat['id_categories'];
so full code :-
foreach($db->fetch_array("SELECT id_categories FROM csn_categories_join_kartes where id_kartes='".$card['id']."'") as $kat){
echo $kat['id_categories'];
}
best practice if you store your query result in a variable and loop over this variable.
foreach($db->fetch_array("SELECT id_categories FROM csn_categories_join_kartes where id_kartes=".$card['id']."") as $kat)
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 8 years ago.
Improve this question
Hope someone can help me :)
I have a json to decode and i want to get some values in it but, i fail trying ...
The json to decode is this one :
$string = '{"TEAM-d2dbb890-813d-11e3-9ae1-782bcb4ce61a":{"fullId":"TEAM-d2dbb890-813d-11e3-9ae1-782bcb4ce61a","name":"La line Up","tag":"LILU","status":"RANKED","teamStatSummary":{"fullId":"TEAM-d2dbb890-813d-11e3-9ae1-782bcb4ce61a","teamStatDetails":[{"fullId":"TEAM-d2dbb890-813d-11e3-9ae1-782bcb4ce61a","teamStatType":"RANKED_TEAM_5x5","wins":4,"losses":2,"averageGamesPlayed":0},{"fullId":"TEAM-d2dbb890-813d-11e3-9ae1-782bcb4ce61a","teamStatType":"RANKED_TEAM_3x3","wins":0,"losses":0,"averageGamesPlayed":0}]},"roster":{"ownerId":21428398,"memberList":[{"playerId":23907761,"joinDate":1390159075000,"inviteDate":1390158849000,"status":"MEMBER"},{"playerId":21075924,"joinDate":1390158942000,"inviteDate":1390158852000,"status":"MEMBER"},{"playerId":21428398,"joinDate":1390158907000,"inviteDate":1390158856000,"status":"MEMBER"},{"playerId":29513977,"joinDate":1390158926000,"inviteDate":1390158911000,"status":"MEMBER"}]},"matchHistory":[{"kills":30,"deaths":51,"opposingTeamKills":51,"assists":50,"gameMode":"CLASSIC","opposingTeamName":"stavaclaroxd","win":false,"invalid":false,"mapId":1,"gameId":1284144814,"date":1390258314682},{"kills":9,"deaths":24,"opposingTeamKills":24,"assists":12,"gameMode":"CLASSIC","opposingTeamName":"Infinity gaming v2","win":false,"invalid":false,"mapId":1,"gameId":1282462494,"date":1390169929005},{"kills":32,"deaths":9,"opposingTeamKills":9,"assists":53,"gameMode":"CLASSIC","opposingTeamName":"Suburban Syndicate Squad","win":true,"invalid":false,"mapId":1,"gameId":1282421677,"date":1390167736333},{"kills":22,"deaths":3,"opposingTeamKills":3,"assists":32,"gameMode":"CLASSIC","opposingTeamName":"SKTlT5","win":true,"invalid":false,"mapId":1,"gameId":1282362755,"date":1390165366740},{"kills":24,"deaths":9,"opposingTeamKills":9,"assists":35,"gameMode":"CLASSIC","opposingTeamName":"нELLO HELLо","win":true,"invalid":false,"mapId":1,"gameId":1282304277,"date":1390163366886},{"kills":35,"deaths":11,"opposingTeamKills":11,"assists":58,"gameMode":"CLASSIC","opposingTeamName":"нELLO HELLо","win":true,"invalid":true,"mapId":1,"gameId":1282260799,"date":1390161678373}],"createDate":1390158828000,"modifyDate":1392723897000,"lastJoinDate":1390159075000,"secondLastJoinDate":1390158942000,"thirdLastJoinDate":1390158926000,"lastGameDate":1390422192000,"lastJoinedRankedTeamQueueDate":1390421982000}}';
I did something but with no result :
$json_a=json_decode($string,true);
$json_a[TEAM-d2dbb890-813d-11e3-9ae1-782bcb4ce61a][name]
That was a fail ... if someone can help me, I would be happy :)
Best regards,
CUETO Vincent
echo the value
echo $json_a['TEAM-d2dbb890-813d-11e3-9ae1-782bcb4ce61a']['name'];
This is not an array, but stdclass - {} not [].
Try:
$json_a->{'TEAM-d2dbb890-813d-11e3-9ae1-782bcb4ce61a'}->name