Page 1 of 1
Making a lineage script for adopts site
Posted: Thu Aug 11, 2011 7:59 pm
by Nemesis79
Ok so I'm really new to php but I'd like to make a script to view the lineages of the adopts on my site. Can anyone help me with this? I haven't started it at all so I've nothing to show.
Re: Making a lineage script for adopts site
Posted: Thu Aug 11, 2011 9:20 pm
by califdon
1. Don't expect someone to write your script for you (unless you plan to pay them).
2. If you are asking for help in blocking out your project, you will need to supply much more detail about what you need, as well as what your experience level is with PHP.
Re: Making a lineage script for adopts site
Posted: Thu Aug 11, 2011 9:45 pm
by Nemesis79
I wasn't asking anyone to write it for me. I just wanted to see if anyone was interested in helping me.
What it is:
My adopts site. You adopt creatures and then once they hit level 2 they are adults and can breed. What I want to do is Have a link o each adopts page that says lineage. Once you click on that link it shows you the generations of that creature. My skill level is low but I'm getting better with it and I can figure out things sometimes on my own. But I think with this I may need help to get it started. I'm confident that with a little help and mentoring I can get it done =)
Re: Making a lineage script for adopts site
Posted: Thu Aug 11, 2011 10:23 pm
by califdon
OK, that's a fair start. In order for someone to help you, you will need to avoid using words like "lineage", which means something to you, but not to anyone else who doesn't know about whatever an "adopt site" may be. We don't care about creatures and adoptions and that sort of stuff, what we understand is programming logic and syntax, database schemas, etc. So let's start out defining what you plan to have in the database (how many tables, how they will be related, how they will be updated), what kind of user authentication you plan to use to control access to the data, what kind of screens (web pages) you will need to display, etc. That's the kind of language we understand. I would expect maybe a page of such information would be required to describe a project like you seem to be working on. This is the place to start.
Re: Making a lineage script for adopts site
Posted: Fri Aug 12, 2011 12:48 pm
by Nemesis79
hmm I'm not too good with programming lingo as I'm still new to it myself

But I'll try.
Users are already logged in. There is already a table called adopts. I need to somehow save the codes of the children into the database (I'm assuming create a new field) and then write some php that tells me which children codes belong to the parent codes and echo that out. Does that make any sense?
Re: Making a lineage script for adopts site
Posted: Fri Aug 12, 2011 9:04 pm
by califdon
It's all part of the learning process. What you need to do is not just a 3 or 4 line reference to an operation that you are very familiar with, but perhaps a 50 line (maybe more, maybe less) description. It should include how your users login (because you will surely want to protect this new script by having it check to insure that the user has logged in, and we can't do that if we don't see the code that was used to log them in); what fields are in the table and what datatypes each one is (you can't even begin to write any code dealing with the database unless you know all the details of the database); what is meant by parent codes and children codes. That's what would make sense.