SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Mar 2004
    Location
    Vancouver
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Help, error message

    Hi,

    I am trying to dynamically create page links based on URL variables.

    So if they come to "http://www.visual-directory.com/finance/carinsurance.php?sid=bob", I want the "sid=bob" to be added to some of my link url on the page.

    That's the error that I get:

    "Parse error: parse error, unexpected '.' in /home/virtual/site133/fst/var/www/html/finance/carinsurance.php on line 95"

    Here is my code:

    PHP Code:
      <img src="../images/stars/review-50.gif" width="54" height="12"><br> 
    <? echo <a href="../tracking/count.php?url=www.anrdoezrs.net/rh79r09608OQTXYWPUOQPSVQYRS?sid="&"$sidtarget="_top" onmouseover="window.status='https://www.insureme.com/';return true;" onmouseout="window.status=' ';return true;">; ?>
    <img src="../images/affiliates/finance/insureme-car.gif" alt="Car insurance  discounters" width="120" height="60" border="0" align="left"></a> 
    <p> <? echo <a href="../tracking/count.php?url=www.anrdoezrs.net/rh79r09608OQTXYWPUOQPSVQYRS?sid="&"$sid"  target="_top" onmouseover="window.status='https://www.insureme.com/';return true;" onmouseout="window.status=' ';return true;" class="titleadword">;?>Provides Free Auto Insurance Quotes - will receive up to 5 quotes.</a>
    Can anyone tell me what I did wrong?

    I am a newbi at PHP so I'd appreciate it if you could tell me, using simple terms.

    Thanks

    4cl
    $5+ web hosting: 1500MB space, 50GB transfer, free domain, etc.

    Mortgage reduction: Bad credit ok- online form, no obligation

  2. #2
    Crazy Webmaster Cr0CX's Avatar
    Join Date
    Dec 2003
    Location
    WWW
    Posts
    428
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    PHP Code:
    <img src="../images/stars/review-50.gif" width="54" height="12"><br> 
    <? 
    print "
    <a href='../tracking/count.php?url=www.anrdoezrs.net/rh79r09608OQTXYWPUOQPSVQYRS?sid=
    $sid' target='_top' onmouseover='window.status='https://www.insureme.com/';return true;' onmouseout='window.status=' ';return true;'> 
    <img src='../images/affiliates/finance/insureme-car.gif' alt='Car insurance  discounters' width='120' height='60' border='0' align='left'></a> 
    <p><a href='../tracking/count.php?url=www.anrdoezrs.net/rh79r09608OQTXYWPUOQPSVQYRS?sid=
    $sid'  target='_top' onmouseover='window.status='https://www.insureme.com/';return true;' onmouseout='window.status=' ';return true;' class='titleadword'>Provides Free Auto Insurance Quotes - will receive up to 5 quotes.</a>";
    ?>
    Run a site? over 1,000 uniques a day? PM me for link exchange.

  3. #3
    Afraid I can't do that Dave Hal9k's Avatar
    Join Date
    Mar 2004
    Location
    East Anglia, England.
    Posts
    640
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It seems to me that you're not using the echo construct properly. Have a look at the examples of using echo here: http://uk.php.net/manual/en/function.echo.php

    Along the same topic:
    http://uk.php.net/language.types.string

  4. #4
    SitePoint Member
    Join Date
    Mar 2004
    Location
    Vancouver
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you.

    The codes you provided worked.

    You've been a great help.

    4cl
    $5+ web hosting: 1500MB space, 50GB transfer, free domain, etc.

    Mortgage reduction: Bad credit ok- online form, no obligation


Bookmarks

Posting Permissions

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