Results 1 to 7 of 7
  1. #1
    Join Date
    Sep 2002
    Location
    az
    Posts
    168

    one line question..

    Whats wrong with this line?
    PHP Code:
    print"<A HREF=\"http://www.flashstand.com/images/screenshots/$row->name\"><IMG HEIGHT=50 WIDTH=50 SRC=\"A HREF=\"http://www.flashstand.com/images/screenshots/$row->name\"></A>; 

  2. #2
    Join Date
    Nov 2000
    Location
    Vancouver, BC
    Posts
    283
    may want to encapsulate the variable in parentheses:

    ie

    Code:
    print "this is a {$row->value} variable";

  3. #3
    Join Date
    May 2002
    Location
    Detroit, MI
    Posts
    144
    Looks to me like the original line is missing the end "
    -={ Dagger Hosting }=-
    -={ http://www.daggerhosting.com }=-

  4. #4
    Join Date
    Jul 2002
    Location
    Israel
    Posts
    351
    PHP Code:
    printf ('<A*HREF="http://www.flashstand.com/images/screenshots/%s"><IMG*HEIGHT=50*WIDTH=50*SRC="http://www.flashstand.com/images/screenshots/%s"></A>',$row->name); 
    C#/C++/TCL/Python/PHP developer.
    mark at mark org il

  5. #5
    Join Date
    Sep 2002
    Location
    az
    Posts
    168
    still getting error, i added the quote..

  6. #6
    Join Date
    May 2002
    Location
    UK
    Posts
    2,994
    What is the actual error message you are getting and are you using Perl or PHP as structrually from that line you posted they are very similar.

    Additionally put a space between print and "

  7. #7
    Join Date
    May 2001
    Location
    HK
    Posts
    3,076

    Smile

    Why not just use this?

    PERL:
    print qq(<A HREF="http://www.youurl/$yourvariable"><IMG SRC="http://yoururl/$yourvariable"></A>)."\n";

Posting Permissions

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