
Toppy
Members-
Posts
13 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by Toppy
-
The code is fine. It'll work if you're connected to the DB, SQL fields are correct and of course $var contains an email address. Try grabbing the results after the binding execute: $stmt = $mysqli->prepare('SELECT user_name from `user_details` where user_email = ?'); $stmt->bind_param('s', $var); $stmt->execute() or $this->myerror[] = $stmt->error; $stmt->bind_result($user_name); while ($stmt->fetch()) { printf("Username is: %s \n", $user_name); }
-
Great find mdshare! Thanks for this post! I'm excited to try this game out. I played Armada 2525 back in the early 90's. I love 4x style games.
-
Would help to know what the project is. RedBean is a lot different than say Doctrine and Propel. Different philosophies. Seeing as you mentioned making your life easier I can concentrate on that. For me I think its debatable if adding a third party db interface will make things easier. Every time you have to learn something new and work around it you lose time and generally flexibility (in ease of use, application speed, time, various requirements). Still, I understand the attraction to an ORM and I've dabbled in a few include Propel, Doctrine and several frameworks that use them. Of the three you listed I would lean towards Doctrine. My reasoning: Doctrine's track record. The project is really on the ball with good documentation, strong releases and release schedule, feature rich and has a good active following. All of which will make things easier for you. Doctine is arguably the big boy now so if you want a good watermark on PHP ORM's then its a place to start. Big bonus is if you end up liking it you won't have to worry about the project falling out from under you. Of course, as mentioned it depends a lot on the project and the various requirements and parameters related to it.
-
Somehow we got off topic but... The latest trend is to omit the closing php code '?>' at the end of the file if in PHP code. This prevents problems of whitespaces or extra characters at the end of the file which could cause errors or what-have-you. Again, that is at the end of PHP code when at the end of a file. There is nothing wrong with closing PHP and including HTML at the end (beginning or middle even). That is one of the strengths of PHP and why it became so popular.
-
After reading your blog a bit and of course this thread I have a few suggestions: 1) My most important suggestion: a domain name immediately. Games or not, this is a business venture. You don't build brand recognition and then change your brand. From day one you are trying to build a brand name, lure visitors and traffic. This is much like the retail motto: "Location, Location, Location". If you build up a business and move you will lose some clientel. The same goes for a domain name and site name. First off, your name is "GamesOverview" and the first domain people use with a name is a .com. So I will remember your blog and think, "hmm, it was Games Overview, right?" and will try: gamesoverview.com - but, that URL is taken by someone else. You just lost a customer/reader. This will happen to you if you build on any other domain extension other than .com and if possibly if your site name is different from your URL. The URL is used to market from day one and links to a URL are important as they build page ranking/serps in Google and other search engines. Granted you can always forward it when you get a new domain but why waste your time building something to do over? Depending on the current deals you can get .com's from $0 up. At most don't pay more than $10 USD but there is no excuse not to do it now. 2) Layout/Looks: Gamers tend to gravitate to a more gamey look. :) They seem to prefer sites that are more visual with images and color. I would suggest looking at some of the free premium word press themes. There are quite a few, nice and high quality ones out there. They also come with some great features and plugins like current video, pictures/image gallery and things like that. Many of them come with ways to change color and style easier as well. Many are also optimized for Adsense and sponsored ads which should be a big priority for your blog. Don't overlook this aspect, it is much like play a text based game versus a nice graphical interface - if the ONLY difference in the game is the look what would you choose. Yes, the nice pretty visually stimulating one. As a note, the current them you have, when I read the about pages I have to abort the load or the RSS part overwrites the content. 3) Your reviews are very detailed which is great. Also, it is excellent that you are humble and modest and are able to correct yourself and take feedback from viewers. A couple of suggestions on your writing: Watch your punctuation. There are several occasions where you use punctuation and forget to add a space with it. These no space lines can get hard on the eyes and make it difficult to read. Also, I would suggest not going off on 'tangents' (for lack of better terminology at this point), such as in the Runes of Magic review when you mentioned how you thought it was wise for Frogster to include the TOS. Considering your reviews are so in depth and there is a lot to read already try to keep the superfluous content to a minimum. 4) After the previous items are sorted, especially #1, I would strongly recommend search engine optimization of the blog. This includes page titles, keywords and article title in the URL, etc. The standard SEO stuff. Good luck on your new ventures.
-
Trying to be helpful here, have a little advice that I hope is taken well. If you're looking for a partner you may want to ask for someone who works well with others, a team player, etc. "Does what they're told" may be acceptable if you're paying a good amount but that could cause some problems in a "partnership".
-
Its situations like this that drive people like me to dislike companies like Adobe and Microsoft. So typical of these kinds of corporate mentalities. If anything they should be praising FlashDen for drawing attention to them. I can understand asking to place a disclaimer or something but this is just over the top. I wonder if they'll go after DC Comics to change the name of "The Flash". You know how dumb us public is, we may think The Flash has to do with a clunky browser plugin! I'm finding this so annoying that I think I'll have to write a blog article about it. The 2 or 3 people who've read my blog may not appreciate the rant but it'll at least make me feel better. :)
-
My recommendations to start would be: 1) Figure out what kind of game you want to make, plan it out, design the game play and how it'll look. 2) Research what programming language would be best for the style of the game (there are many languages you can use). 3) Learn the programming language and programming theories well. 4) Program the game when you understand the language, programming methodologies and what the game will be. If you want to just take an existing game and modify it then: 1) Figure out what game you want to start with. 2) Learn the language it is using (so you can understand how to program and what is right or wrong in the existing game code and the code you're adding). 3) Modify and change as needed.
-
Are you getting this on your live server? Who's hosting it? Sounds like its timing out when hitting the database. Are you noticing slow responses when you're working on the site or with phpmyadmin?
-
LOL, sorry, I meant the first 4 options of the poll when I made the windows reference. I knew Komodo was cross platform. :)
-
My suggestion is as follows: First, welcome to the world of PHP 5 and OOP. Second, be careful and be prepared. When you ask a question about OO methodology it typically ends up in a huge debate about theory and how it "should" be done. I've seen more hours spent on debating OO than actual programming time on various apps. Its led me to wonder if dev's add that on to their bill or not? PHP 5 OO Coders Bill: Item: PHP Coding: 5 hours Item: OO Practice Debate and Theories: 25 hours I've also seen guys debating OO theory and when a simple PHP language construct question came up they had no clue about it! Ok, thats my 2 cents. Good luck on your project and trying to figure out what is the best practice. :)
-
I'd go with 'E: None of the Above' as well. First off, they sound like all windows editors and that's sucky! :) Lately, for coding, I'm mostly using Eclipse and Netbeans. If its just a quick edit its either JOE or Gedit.