i am having issue with the $id_get['id '] funtion
<p>first off i am new to php, i want to be able to call the comment that users make on a picture on the same page as the pic. and when a different page comes up that comment for that pic is displayed also. i am able to that, but i cant seem to call the url for that pic without changing the actual code.</p>

<pre><code>&lt;?
include.....

$picid = $_GET['picid'];
$query = mysql_query("SELECT * FROM pic_info WHERE picid = 'picid1' ");// problem

while($rows = mysql_fetch_assoc($query)):
$picid = $rows['picid'];
$title = $rows['title'];
$link = $rows['link'];
$description = $rows['description'];
$movie_pic = $rows['movie_pic'];
$source = $rows['source'];

endwhile;

$get_comment = mysql_query("SELECT * FROM comment WHERE picid ='$picid'");// work partially
$comment_count = mysql_num_rows($get_comment);
if ($comment_count&gt;0)
{
while ($com = mysql_fetch_array($get_comment)){
$comment_id = $com['comment_id'];
$name = $com['name'];
$message = $com['message'];
$time_post= $com['time_post'];
$messages .= '&lt;em&gt; on ' .$time_post.'&lt;/em&gt;&lt;b&gt;   '.$name.'   said.....&lt;/b&gt;&lt;br/&gt; '.$message.'&lt;hr/&gt;';
}
?&gt;
</code></pre>

<p>problem:: only work if i change picid1 to some thing else like picid2 or 3 or 4...
work partially :: works when i change picid1 to some thing else like picid2 or 3 or 4...
other than that it comes up saying no comment.</p>

<p>i not sure if the problem is at top, cant figure it out.</p>
