Jump to content


Photo

writing to database


  • Please log in to reply
2 replies to this topic

#1 gk20

gk20
  • Members
  • PipPip
  • Member
  • 14 posts

Posted 03 March 2006 - 01:43 PM

I have a small ads website, and upon registration users may login and place ads.
But when they place their ads, I want the system to store their ad along with username
without asking them to provide it again. Is there anyway that the system can store their
username in a variable after successful login (from login.php) and use it later when placing
an ad (in placead.php)???




#2 ToonMariner

ToonMariner
  • Members
  • PipPipPip
  • Advanced Member
  • 3,342 posts
  • LocationNewcastle upon Tyne, UK

Posted 03 March 2006 - 01:51 PM

yes if you are talking about them logging in, placing an ad and it auto storing those together then you need only to use a session or a cookie.

easy to write so go and look at the those sections on the php site.
follow me on twitter @PHPsycho

#3 gk20

gk20
  • Members
  • PipPip
  • Member
  • 14 posts

Posted 03 March 2006 - 02:00 PM

OK, thanks will do!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users