Hello, I need your...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
gaogier
Forum Contributor
Posts: 391
Joined: Wed Mar 02, 2005 1:02 pm
Location: Portsmouth, UK
Contact:

Hello, I need your...

Post by gaogier »

Hello, I need your advice on something.


What would be the best way, to make somesomething that is mostly complete, I would say about 70% so we dont really want to change too much.

Here is the problem

say, you have, 150 fields added in a mysql database and they all need to be marked off as complete (its something for a game), all ID'ed and say, 140th field requires 10 fields to be marked off as complete, inorder for it to be complete.

How would the best way for this to be done?
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:2. Use descriptive subjects when you start a new thread. Vague titles such as "Help!", "Why?" are misleading and keep you from receiving an answer to your question.
If I knew what "marked off as complete" meant, it'd be helpful
gaogier
Forum Contributor
Posts: 391
Joined: Wed Mar 02, 2005 1:02 pm
Location: Portsmouth, UK
Contact:

Post by gaogier »

Well, this if for a game, and you in this game you have quests, and when you complete a quest (on this system you click iv completed this quest)


Im not to sure how its done, but i know it is
User avatar
aaronhall
DevNet Resident
Posts: 1040
Joined: Tue Aug 13, 2002 5:10 pm
Location: Back in Phoenix, missing the microbrews
Contact:

Post by aaronhall »

You'll have to be far more descriptive.
gaogier
Forum Contributor
Posts: 391
Joined: Wed Mar 02, 2005 1:02 pm
Location: Portsmouth, UK
Contact:

Post by gaogier »

In this game there are quests that members can complete... But some quests require 1 or more quests to be completed before it can be done.
EXAMPLE:
Quest 3,5,1 MUST be completed before Quest 21 Can be Completed. How do i Do this?
d3ad1ysp0rk
Forum Donator
Posts: 1661
Joined: Mon Oct 20, 2003 8:31 pm
Location: Maine, USA

Post by d3ad1ysp0rk »

Sounds like you had someone make you the game and now they're gone?

If so, there's NO way we'll be able to guide you through how to change it. You'll either need to pay someone to help you, get a hold of the other programmer you used, or ask very nicely in the volunteer forum.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Post your table strucutre(s). Do you seriously have 150 fields in a table? 8O

I think I know what you're asking and you you should be able to create table with users/questions then simply check for the existence of a row which matches the user id to the question ID.

Code: Select all

create table user_question_tracker (
  id int not null auto_increment primary key,
  question_id int,
  user_id int,
  foreign key(question_id) references question(id),
  foreign key(user_id) references user(id)
)
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Descriptive subjects

Post by RobertGonzalez »

You were asked on Tuesday to
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:2. Use descriptive subjects when you start a new thread. Vague titles such as "Help!", "Why?" are misleading and keep you from receiving an answer to your question.
It is now Thursday and the title is still 'Hello, I need you...'. Any chance that you could maybe change the title to something that would make people want to help you?
gaogier
Forum Contributor
Posts: 391
Joined: Wed Mar 02, 2005 1:02 pm
Location: Portsmouth, UK
Contact:

Post by gaogier »

what should i change it to?


its not me whos making it, so i am not 100% sure on whats the problem is, its somone who i know is making it.
User avatar
Zoxive
Forum Regular
Posts: 974
Joined: Fri Apr 01, 2005 4:37 pm
Location: Bay City, Michigan

Post by Zoxive »

Line 457, char 9 theres an error.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

gaogier wrote:what should i change it to?


its not me whos making it, so i am not 100% sure on whats the problem is, its somone who i know is making it.
Maybe look at exactly what you are asking, the make the thread title reflect that. But Hello, I need your ... is painfully difficult to assess from a list of topic titles.
Post Reply