thanks guys ill try it out when i get home
gforce i am defining $id through the link to the gallery from the gallery index.
example:
gallery.php?view=gall&id=1
where should i put that free result
im a tid bit new to php but i think im doing ok, also can someone help me out with my post on inserting stuff into the db, i have clue y it doesnt work
edit:
thanks to both of you, its updating views now

now i gotta sort out that inserting>_<
edit2:
ok i changed the insert query to this but it still aint working:
PHP Code:
if($do==insert){
$image_date= time();
$DB_site->query("INSERT INTO gallery (gallery_id,artist_name,artist_id,image_name,image_url,image_des,image_date) VALUES('$gallery_id','$artist_name','$artist_id','$image_name','$image_url','$image_des','$image_date')");
}
HTML Code:
<form action="gallery.php?do=insert" method="get">
<input type="hidden" name="gallery_id" value="$id">
<input type="hidden" name="artist_name" value="$bbuserinfo[username]">
<input type="hidden" name="artist_id" value="$bbuserinfo[userid]">
Image Name:<input type="text" name="image_name" value="Image Name" maxlength="35" size="20">
</td>
</tr>
<tr>
<td class="gal1">Image Url:<input type="text" name="image_url" value="Image's Url" maxlength="255"></td>
</tr>
<tr>
<td class="gal2">Image Description:<br /><textarea name="image_des" maxlength="900" rows="3" cols="45">Put your image's description here</textarea>
</td>
</tr>
<tr>
<td class="galhead"><input type="submit" value="Submit Entry"></td>
</tr>
</table>
</form>