Reputation: 17 Tradesman
- Active Members
- Active Posts:
- 275 (0.14 per day)
- 06-January 10
- Profile Views:
- Last Active:
- Mar 15 2015 08:08 PM
- OS Preference:
- Favorite Browser:
- Favorite Processor:
- Who Cares
- Favorite Gaming Platform:
- Your Car:
- Dream Kudos:
Posts I've Made
Posted 15 Mar 2015It worked just fine for me two seconds ago, however it does look like its not auto logging people in. that might be the issue.
Posted 14 Mar 2015You are using too much PHP and not enough SQL! Seriously.
Not terribly surprising to me, lol this class is a thousand times better than my previous version, which had about 300 times more functions for a similar process.
QuoteYour database kind of confuses me here. You field names are wickedly inconsistent. Structurally, you planets seem to belong to stars. And stars have owners. But planets also have owners, which is confusing. Your code seems to treat these owners as interchangeable, which is more confusing.
The owners are interchangeable -- there is an AI in the game (not implemented at the moment), which will essentially allow planets to rebel against the user, so while the user can still own the Star, there may be a planet under rebel controll.
Your code makes a lot more sense, (which is to be expected, i'm not the best at optimizing things like that) -- but i do have a question, what exactly does the getRow function do that the pdo fetch function does not? I mean, it essentially is a simplified version of Fetch, is it not?
Posted 7 Mar 2015
QuoteThat was meant as an example of how you might change your query. I didn't take the time to figure out exactly how to do it, only to suggest a line of thought. Basically, if the x and y coordinates of two stars are both within a certain range of each other, you only want to use one (at most) of them.
Well, i didn't take your exact suggestion, i've been tweaking around with it since the you suggested it, but I think i've worked it out now -- i think the issue wasn't the selecting what stars already exist, but handling the data afterwards. I just changed the value from "return true" to "Return False" (or vice versa) and it's working now.
Posted 6 Mar 2015Sorry, force of habit (I'm actually hitting the multiquote button... i'm just bad)
Posted 6 Mar 2015Quite. And the most unhelpful thing you can do with an exception is simply ignore it. An exception is there to tell you something happened. Hiding that means you're making your code much harder to debug.
For a final system, you can get creative and allow your page to deal with the exception gracefully, which is the fundamental reason for the catch in the first place. But until things are running smoothly, it's usually more helpful to see exactly what bad things are happening.
alright -- how do i get the system to throw out the error information? Every time I have the $e->errorInfo or whatever it just never shows information.
- Member Title:
- D.I.C Regular
- Age Unknown
- Birthday Unknown
Lieoften hasn't added any friends yet.