Ben 'yazar' gibi benim veritabanında bazı bilgiler 'kitap', vb tüm ilişkili olduğu 'kullanıcı' bir ilişkilidir, 'note_id var. Ben not kimliği için DB sorgulamak. ve ben böylece geri almak:
* note_id assoc array*
Array ( [0] => 32 ) Array ( [0] => 31 ) Array ( [0] => 33 ) Array ( [0] => 34 ) Array ( [0] => 35 ) Array ( [0] => 36 ) Array ( [0] => 37 ) Array ( [0] => 38 ) Array ( [0] => 39 ) Array ( [0] => 40 ) Array ( [0] => 41 ) Array ( [0] => 42 ) Array ( [0] => 43 ) Array ( [0] => 44 ) Array ( [0] => 45 ) Array ( [0] => 46 )
Ne yapmam çalışıyorum daha sonra sırayla kullanıcıya görüntüler her kitap incelemesi, (yazar, kitap, vb) kapmak için bu değerlerin hepsi kullanmaktır. Tek tek.
Bana bu yapabilmek için bir sonraki adım nedir?
İşte ben kullanıyorum kodu:
<?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 note_id FROM notes WHERE user = '$username'";
$get_data = mysql_query($sql_for_username_submission);
while ($data_row = mysql_fetch_assoc($get_data))
{
$name_id = $data_row;
}
}
?>
Lütfen yardım edin. Bu sefer biraz kayıp değilim.
Teşekkür ederiz!