Hi there,im a new php develepor and im wondering how to post a comment to a picture im currently viewing within a photo album,
i have a comments table in my database containing,
>user_id (int)
>photo_id (int)
>album_id (int)
>comment (var char)
>comment_id (pri key) (a.i) (int)
so far the only fields i cannot fill in are the photo_id and album_id, i want to put them on the variables $photoId and $albumId, i have no idea how to set them thus allowing me to insert them into the database. i got user_id from the session, comment from the text area, and comment_id is auto increment so no need to worry about that...im just looking for a bare essential way of doing this, to get a working version, a dirty version if u must.
anyways, after you help me set these photo_id and album_id variables i should be okay on my own.
thanks in advance
i have a comments table in my database containing,
>user_id (int)
>photo_id (int)
>album_id (int)
>comment (var char)
>comment_id (pri key) (a.i) (int)
so far the only fields i cannot fill in are the photo_id and album_id, i want to put them on the variables $photoId and $albumId, i have no idea how to set them thus allowing me to insert them into the database. i got user_id from the session, comment from the text area, and comment_id is auto increment so no need to worry about that...im just looking for a bare essential way of doing this, to get a working version, a dirty version if u must.
anyways, after you help me set these photo_id and album_id variables i should be okay on my own.
thanks in advance

Comment