Content from database to webpage

Home Forums Quform PHP Content from database to webpage

This topic is: resolved
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #12685
    Frens
    Participant

    Hi,

    I make a database and tabel with name , email e.g

    Can someone me give a sample how to get the stored information (name email e.g in the database to show in a webpage ??

    webpage:
    name Frens | email test@com.com e.g
    name Jane | email test@sel.com e.g

    Thanks for comment

    #12688
    Frens
    Participant

    Ok..find out

    <?php
    mysql_connect(“localhost”, “deb1111_form”,”xxxxx”) or die (mysql_error());

    mysql_select_db(“deb1111_form”)or die (“Not connect with database”);

    $query = mysql_query (‘select id, name,email, dag from test ORDER BY dag’) ;

    while ($rows = mysql_fetch_assoc($query)) {

    echo $rows [‘id’] .” “.$rows [‘name’] .” “.$rows [‘dag’] .” “.$rows [’email’];

    }
    ?>

    If this could better ….welcome………

    #12700
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy