Click here to Skip to main content
15,799,257 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
AnswerRe: Error While Senting Email [modified] Pin
That's Aragon4-Jun-11 0:07
That's Aragon4-Jun-11 0:07 
GeneralRe: Error While Senting Email Pin
Arunkumar.Koloth4-Jun-11 0:38
Arunkumar.Koloth4-Jun-11 0:38 
Questionyoutube upload using zend Pin
ammeer_a3-Jun-11 10:41
ammeer_a3-Jun-11 10:41 
QuestionGetting null value on $objWMI->ExecQuery('select * from win32_LogonSession') for some virtual machines. Pin
shankysharma861-Jun-11 2:48
shankysharma861-Jun-11 2:48 
QuestionMini WebShop Pin
n38130-May-11 2:06
n38130-May-11 2:06 
Generalupload photo Pin
emsiden29-May-11 17:49
emsiden29-May-11 17:49 
AnswerRe: upload photo Pin
Firo Atrum Ventus29-May-11 18:52
Firo Atrum Ventus29-May-11 18:52 
QuestionFor Loop does not work Pin
Dwayner7927-May-11 15:21
Dwayner7927-May-11 15:21 
First time developing in PHP. Used to coding in c#, so feel free to make fun of me.

Here is the code I am using:
<?php
$response = file_get_contents($url);
$jsonResults = json_decode($response, true);

echo "Title: ".$jsonResults['items']['0']['volumeInfo']['title']; //this works
echo "Title: ".$jsonResults['items']['1']['volumeInfo']['title']; //this works

//this does not
for ($i = 0; $i < $jsonResults['items'].length; $i++) {
	echo "Link: ".$jsonResults['items'][$i]['volumeInfo']['title'];
} 
?>


Now the json results look like this:
array(3) {
  ["items"]=>
  array(10) {
    [0]=>
    array(7) {
      <snipped>
      ["volumeInfo"]=>
      array(12) {
        ["title"]=>
        string(64) "MyTitle"
        <snipped>
      }

*****************
"We need to apply 21st-century information technology to the health care field. We need to have our medical records put on the I.T." —GW

AnswerRe: For Loop does not work Pin
Graham Breach27-May-11 22:27
Graham Breach27-May-11 22:27 
GeneralRe: For Loop does not work Pin
Firo Atrum Ventus28-May-11 1:02
Firo Atrum Ventus28-May-11 1:02 
GeneralRe: For Loop does not work Pin
Dwayner7928-May-11 13:31
Dwayner7928-May-11 13:31 
QuestionData Mapping in PHP Pin
grmihel225-May-11 4:47
grmihel225-May-11 4:47 
AnswerRe: Data Mapping in PHP Pin
cjoki25-May-11 6:56
cjoki25-May-11 6:56 
GeneralRe: Data Mapping in PHP Pin
grmihel225-May-11 22:54
grmihel225-May-11 22:54 
GeneralRe: Data Mapping in PHP Pin
cjoki26-May-11 10:43
cjoki26-May-11 10:43 
GeneralIphone Development Training Courses Pin
karnti45452-Jun-12 0:18
karnti45452-Jun-12 0:18 
QuestionMySQL & PHP query: using SELECT * and DISTINCT Pin
whatsa19-May-11 15:25
whatsa19-May-11 15:25 
AnswerRe: MySQL & PHP query: using SELECT * and DISTINCT Pin
Luc Pattyn19-May-11 16:31
sitebuilderLuc Pattyn19-May-11 16:31 
AnswerRe: MySQL & PHP query: using SELECT * and DISTINCT Pin
urtrivedi19-May-11 18:58
urtrivedi19-May-11 18:58 
AnswerRe: MySQL & PHP query: using SELECT * and DISTINCT Pin
cjoki25-May-11 6:41
cjoki25-May-11 6:41 
Questionecho not working Pin
Steve Harp19-May-11 7:05
Steve Harp19-May-11 7:05 
AnswerRe: echo not working Pin
Graham Breach19-May-11 7:25
Graham Breach19-May-11 7:25 
GeneralRe: echo not working Pin
Steve Harp19-May-11 10:50
Steve Harp19-May-11 10:50 
QuestionE-mail tracking in PHP Pin
ubaidur19-May-11 3:30
ubaidur19-May-11 3:30 
AnswerRe: E-mail tracking in PHP Pin
Gerben Jongerius19-May-11 4:47
Gerben Jongerius19-May-11 4:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.