Please help... I may pull out my hair....

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

User avatar
dragonsmistress
Forum Commoner
Posts: 44
Joined: Thu Dec 18, 2008 2:03 pm

Re: Please help... I may pull out my hair....

Post by dragonsmistress »

ahhh yes, sorry again. been awhile since i posted in a forum and i forgot about the bumping of threads.

anyhow, i understand what the code is suppose to do but it's not only pulling those up. i've tried several different ways to modify it but nothing seems to be doing the trick
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Re: Please help... I may pull out my hair....

Post by RobertGonzalez »

So how is the app supposed to distinguish between eggs, hatchlings and everything else? What sets the two apart that you want?
User avatar
dragonsmistress
Forum Commoner
Posts: 44
Joined: Thu Dec 18, 2008 2:03 pm

Re: Please help... I may pull out my hair....

Post by dragonsmistress »

The user only needs to add their eggs and hatchlings thus getting clicks to make them grow into adults. the adults don't need the clicks so they do not need to be added (: Make sense?
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Re: Please help... I may pull out my hair....

Post by RobertGonzalez »

Right, but what on the dragoncave website would tell you that you are getting an adult hatchling? The way I was reading it there were eggs, hatchlings and adults. The search is pulling back only those rows marked as eggs and hatchlings. How is an adult hatchling identified on the dragoncave website?
User avatar
dragonsmistress
Forum Commoner
Posts: 44
Joined: Thu Dec 18, 2008 2:03 pm

Re: Please help... I may pull out my hair....

Post by dragonsmistress »

Oh I see what you mean....it's identified the same way... I just keep getting all of them when I run the script. I dunno...
User avatar
dragonsmistress
Forum Commoner
Posts: 44
Joined: Thu Dec 18, 2008 2:03 pm

Re: Please help... I may pull out my hair....

Post by dragonsmistress »

actually.... i take that back..... the word eggs and hatchlings is showing up but the images don't match what the text says.... take a look at the result here --> http://hatchingdragons.net/test3.php
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Re: Please help... I may pull out my hair....

Post by RobertGonzalez »

Ah, ok, that means that there is an issue with the regular expression. Unfortunately that is not my strong suit so I am going to have to defer to someone that is more apt to handle regex. Sorry.
User avatar
dragonsmistress
Forum Commoner
Posts: 44
Joined: Thu Dec 18, 2008 2:03 pm

Re: Please help... I may pull out my hair....

Post by dragonsmistress »

No worries (: I'm headed to bed so maybe someone will have a suggestion in the morning (: Thanks so much for getting me on the right track, though!
User avatar
dragonsmistress
Forum Commoner
Posts: 44
Joined: Thu Dec 18, 2008 2:03 pm

Re: Please help... I may pull out my hair....

Post by dragonsmistress »

Ok so... I have officially given up. I have been reading tutorials....asking through forums.... and I just can't figure it out ): If anyone can help...please please do so (: Otherwise I'm putting this project on the back burner ):
Post Reply