Re: session variable in select query showing picture from database

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



$band_id = 11;
$query="SELECT * FROM pic_upload WHERE band_id=$band_id";

print_r($_SESSION);

gives this:
Array ( [session_var] => 11 )

and picture is shown on the page



And about the session start: I have session start on the index2.php page
when user has logged in.
Page that should show the picture is in its own div on index2 page...

[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux