PHP Help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Lace
    Too lazy to set a custom title
    • Mar 2004
    • 16116

    #1

    PHP Help

    Trying to get some hosted galleries up..I remember JupzChris I believe was trying to explain how to do it with php, but I cant get it to work.

    He said:

    point the affiliates to www.domain.com/galleries/gallery001/?a=USERID

    then modify index.php and inset this wherever you want the USERID to appear (like in another link)
    <?=$a?>


    that <?=$a?> tag is showing up red in macromedia and im getting an error when i load the page..

    So say I have banner1.gif that needs to be linked to blah.com/affiliateid=XXXXXX

    how would I do this? and set the main url?
    Your Paysite Partner
    Strength In Numbers!
    StickyDollars | RadicalCash | KennysPennies | HomegrownCash
  • nolaman
    Confirmed User
    • Mar 2004
    • 1001

    #2
    you need a space or new line after/before the php tags

    <?

    print"$a";

    ?>
    PHP Programmer ICQ 215-504-788

    Comment

    • Lane
      Will code for food...
      • Apr 2001
      • 8496

      #3
      try this:

      <? echo $_GET['a']; ?>

      Comment

      • Lane
        Will code for food...
        • Apr 2001
        • 8496

        #4
        Originally posted by nolaman
        you need a space or new line after/before the php tags
        no

        Comment

        • Alky
          Confirmed User
          • Apr 2002
          • 5651

          #5
          Originally posted by nolaman
          you need a space or new line after/before the php tags

          <?

          print"$a";

          ?>
          no, but you do need a space after print.

          Comment

          • Lane
            Will code for food...
            • Apr 2001
            • 8496

            #6
            by the way, use it like this

            <a href="http://blah.com/affiliateid=<? echo $_GET['a']; ?>">blah blah</a>

            Comment

            • Lace
              Too lazy to set a custom title
              • Mar 2004
              • 16116

              #7
              Originally posted by Lane
              by the way, use it like this

              <a href="http://blah.com/affiliateid=<? echo $_GET['a']; ?>">blah blah</a>
              nm got it, thanks.
              Last edited by Lace; 09-27-2004, 12:07 AM.
              Your Paysite Partner
              Strength In Numbers!
              StickyDollars | RadicalCash | KennysPennies | HomegrownCash

              Comment

              • nolaman
                Confirmed User
                • Mar 2004
                • 1001

                #8
                Originally posted by Lane
                no
                For the color syntax to work in dreamweaver there needs to be a space.
                PHP Programmer ICQ 215-504-788

                Comment

                • Alky
                  Confirmed User
                  • Apr 2002
                  • 5651

                  #9
                  Originally posted by nolaman
                  For the color syntax to work in dreamweaver there needs to be a space.
                  the color syntax? whats a color syntax?

                  Comment

                  • nolaman
                    Confirmed User
                    • Mar 2004
                    • 1001

                    #10
                    http://www.google.com/search?num=50&...q=color+syntax
                    PHP Programmer ICQ 215-504-788

                    Comment

                    • nolaman
                      Confirmed User
                      • Mar 2004
                      • 1001

                      #11
                      or "syntax coloring". whatever you wanna call it.
                      PHP Programmer ICQ 215-504-788

                      Comment

                      Working...