SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Feb 2003
    Location
    Fairbanks, Alaska
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need a lil help debugging..

    Okay, the objective of this code it to be able to post a PATH to a downloadable file in a SQL database.

    Then you would click a link that would be this path to download the file...

    Here is the code..
    Code:
     
    PHP Code:
     echo("Motherboard Model: ".$row['motherboardmodel']." &nbsp;&nbsp;&nbsp;<a href="".$row["mbdpath']."'>Download Drivers</a><br>" ) 
    Do you get what I'm trying to accomplish? Okay..

    This is the current error: Parse error: parse error, unexpected '\"' in /home/virtual/site287/fst/var/www/html/support.php on line 95

    The line I posted is line 95... if anyone can fix this for me, I'll love you forever.

  2. #2
    ********* wombat firepages's Avatar
    Join Date
    Jul 2000
    Location
    Perth Australia
    Posts
    1,717
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    there were a couple of mistakes .. dont be scared to space things out to make them more readable...

    PHP Code:
    <?
    echo 'Motherboard Model: ' $row['motherboardmodel'] . ' &nbsp;&nbsp;&nbsp;<a href="' $row['mbdpath'] . '">Download Drivers</a><br>';
    ?>


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
  •