By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,409 Members | 1,604 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,409 IT Pros & Developers. It's quick & easy.

user login can edit their record only - PHP / MySQL

P: n/a
Hi,
I'm fairly new to developing PHP / MySQL databases. I've just created a
job posting board that works OK, but I want this feature: user creates
their username/password to enter a listing. Once they've entered a job
listing, they can login again and will be able to edit / drop their
listing only. Any pointers in the right direction would be appreciated.
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Too broad a question, my friend. The answer would be "you need to read
a little about db design and how it applies to php projects".
Basically, if you for example have two MySql tables, one of them with
the user data and another with their listings data (assuming one user
can have more than one of these "listings"), you need a way to identify
wich listing/s belong to wich user/s. Usually this wil be a field in
the listings table containing the name (or any other handle/key you
have assigned to the users) of its corresponding user.

Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.