inserting value implicity

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
rami
Forum Contributor
Posts: 217
Joined: Thu Sep 15, 2005 8:55 am

inserting value implicity

Post by rami »

i was trying to post this topic in request tutorial or code but as there are no such section i am doing it here
sorry ..

any way
suppose there is link
a user logs in and he has user_id in database table and referred as $row['userid'] in promgramming after select
suppose there is link
a href=postnews.php?uid=$row['userid']...

and can some body tell me how can i implicity insert this userid of table
suppose table has user_id,name,news field
i take name and news through text boxes in next page form
but how can i implicitly insert that userid taken from earlier page

any quick guide ,code snppnet,tutorial link,tutorials,pages would be g8
thanks
rami
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

provided the currently executing script has access to this "previous" variable (do not rely on the referrer giving it to you), then you simply add it to your insertion query... however, I may have completely misunderstood your post.. :?
Post Reply