Re: session variable in select query showing picture from database

[email protected] (Mika Jaaksi)
Newsgroups php.db
Message-ID <[email protected]>
$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...
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.