Kullanıcı sayfasında verileri görüntülemeye yardımcı olur.

2 Cevap php

Ben burada sipariş verileri görüntülemek çalışıyorum:

Yazar Adı

Kitap Adı

Url

NOT: her veri parçası için birçok sonuç vardır. Onlar getirilen zaman dizisinde saklanır nasıl emin değil im.

Veritabanı şeması göreceğiniz gibi ilişkisel ve veritabanı farklı alanlarda bu bilgi bitlerini bağlanır.

Eğer anladım olabilir gibi programlamaya yeni im.

Burada bir kayıp Im.

İşte benim kod:

<?php

//Starting session

session_start();

//Includes mass includes containing all the files needed to execute the full script
//Also shows homepage elements without customs

include ('includes/mass.php');

//Set the  session variable

$username = $_SESSION['username'];


//Check to see if logged in

    if (isset($username))

        {

            //Check all databases assoc with the notes for username submissions

            $sql_for_username_submission = "SELECT notes.authname, notes.bookname, notes.url, notes.note_id, notes.user, smallnotes.chapter_name FROM notes INNER JOIN small_notes ON notes.note_id = small_notes.notes_id AND notes.user = small_notes.user ORDER BY notes.note_id";

            $get_data = mysql_query($sql_for_username_submission);

            while ($data_row = mysql_fetch_assoc($get_data))

                    {

                        $authnames = $data_row['authname']; 

                        Stopped here. not sure how to progress

                    }

        }   


?>

2 Cevap

Ben bazı UI kontrolleri data_row verileri bağlamak istiyorum hangi gerekir hayal ediyorum. Başka bir deyişle, ekranda bazı yer tutucular olması gerekir.

Saygılarımızla

Farketmez sen benim assosciative dizi getiriliyor edilir. Siz sadece anahtar ile dizi öğeyi başvuru ve zaman ve nerede isterseniz hiç kullanabilirsiniz.

Sen dizi sıralanır konusunda endişelenmenize gerek yok.