Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2004

    Angry Unanswered: A "get" problem...

    I am using this code snipet on a site and it is working perfectly. However, using the same snippet on a different site, on a different server, does not work. Other php commands are working on the page. This is really stressing me out. Here's the code:

    <div align="center"><img src="images/large/mlb/<?php print $_GET[picture]?>" width="360" height="360" border="1"></div>

    Any ideas? tests I can run?

    Thanks for any help.


  2. #2
    Join Date
    Oct 2002
    Plymouth UK
    The shortcut $_GET was introduced in 4.1.0. If one of the sites is running an earlier php version this will fail. Replace the $_GET with the full array name $HTTP_GET_VARS and this should fix the problem. Also picture should be in quotes.

  3. #3
    Join Date
    Feb 2004
    Hey, thanks for the help, it solved my problem!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts