jeudi 23 février 2017

Overview and detail Page Database list

Right now i programm a shop with php.

I want now to display the products which are in the database on one page.

But first I only want to show a short description, a picture and a "like"-Button.

I want to display it in a square. Also it should work like a button. If I click on the picture i want to Display the details as a pop up or new Page.

Right now a made a function which works but only looks like a button so no picture and no Like-Button:

function getGroup (){

    $get_group = "SELECT * FROM Groups WHERE ShortDescription!='' order by ID DESC";

    $run_group = mysqli_query($link, $get_group);
    while($row_group=mysqli_fetch_array($run_group)){

    $group_id =$row_group["ID"];
    $group_ShortDescription =$row_group["ShortDescription"];
    $group_Plattform =$row_group["Plattform"];

echo "
  <div id='Single_Group'>
  <a href='details.php?ID=$group_id' class='ui-btn' id='GroupsButton'>$group_ShortDescription <wbr>          $group_Plattform</a>
  </div>
";

    }



}

Can anybody help me??




Aucun commentaire:

Enregistrer un commentaire