use href to diplsy database results

Discussion in 'PHP' started by tldmic, Apr 6, 2010.

  1. #1
    Hi,

    I have a problem with my code, please not that I have quoted the important sections below

    mypage.php;

    <ul>
    <li><a href='mypage.php'>Tins</a></li>
    <li><a href='mypage.php'>Bottle</a></li>
    <li><a href='mypage.php'>Boxes</a></li>
    </ul>

    $sql="select List from table where category=Tin1";

    $result=mysql_query($sql);

    echo $result;


    can anyone advice please,

    My aim is to do the following,
    When I click on href, I should be able to display the results from the database as shown.
    Can anyone advice,please?

    thanks
    tldmic
     
    tldmic, Apr 6, 2010 IP
  2. skywebsol

    skywebsol Well-Known Member

    Messages:
    161
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #2
    may be this can help you my friend
     
    skywebsol, Apr 6, 2010 IP