Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

MySql/PHP Help!!

  • 25-01-2006 01:50PM
    #1
    Closed Accounts Posts: 46


    Hi

    I am using PHP to pull some info from my Mysql DB and I have one little niggle that I just cant figure out. I have been trying for days and trying to google the problem but no joy. If anyone could shed any light I would be extremely grateful!!

    I have called the info from my table like this which works grand:

    $query="Select Race As Race, Date as Date, Link as Links From ReultsIndex
    Order By Date DESC";

    Im displaying the info from the table in my page like this, which also works fine:
    {
    //
    echo "<tr><td><font face=verdana>" .
    $row["Race"] . "</font></td><td> " .
    $row["Date"] . "</font></td><td> " .
    $row["Links"] . "</td></tr> ";

    }

    However, I want the first colum (Race) to be a link.
    There are three fields in this table, The Race, The Race Date, and the name of the link to the race result.
    I want to display the Race name (Race) and link this to the race result (Link) and in the next colum display the date of the race (Date)

    HELP please!!!!! :eek: :eek:


Comments

  • Registered Users, Registered Users 2 Posts: 68,173 ✭✭✭✭seamus


    Easy peasy :)
      {
             echo "<tr><td><font face=verdana>
                  <a href=\"" . $row["Links"] . "\">" . $row["Race"] . "</a></font></td><td> " .
     $row["Date"] . "</td></tr> ";
       
        }
    


  • Closed Accounts Posts: 46 kat9182


    Thank You Thank You Thank You!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


  • Closed Accounts Posts: 4,655 ✭✭✭Ph3n0m


    oh nevermind :)


Advertisement