O'Reilly Forums: Facing Issue With The Code - O'Reilly Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Facing Issue With The Code Facing issues with the getDetails.php file

#1 User is offline   srivatsahg 

  • New Member
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 11-August 14

  Posted 11 August 2014 - 01:55 AM


I've been trying to get the first web sample for AJAX enabled website work in vain.
The call made to the getDetails.php returns me everything / all data instead of just the description

Sample response i get
Pete Townshend once played this guitar while his own axe was in the shop having bits of drumkit removed from it.
", 'itemShades' => "
Yoko Ono's sunglasses. While perhaps not valued much by Beatles fans, this pair is rumored to have been licked by John Lennon.
", 'itemCowbell' => "
Remember the famous \"more cowbell\" skit from Saturday Night Live? Well, this is the actual cowbell.
", 'itemHat' => "
Michael Jackson's hat, as worn in the \"Billie Jean\" video. Not really rock memorabilia, but it smells better than Slash's tophat.
" ); echo $details[$_REQUEST['ImageID']]; ?>

I have also attached the screenshot as to how it is appearing on my browser.
Is this something related to the PHP configuration or my browser or something basic that i have missed.

Thanks for your response in advance.

Attached thumbnail(s)

  • Attached Image: PHP_ERROR_AJAX.png


Share this topic:

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users