My Nations

Place to place any code snippets, completed games, or even uncompleted games for IR users to use.
Post Reply
wormy677
Posts: 10
Joined: Fri Dec 03, 2010 5:46 pm

My Nations

Post by wormy677 »

My Nations is a game that i am building or trying to i have found all of the units and buildings that i want to ues for the can on the internet i want the game to be some what like cyber nation but i dont no how to make a homepag or linke it up with a host or make it were you can buy units or builldings and make it were the builldings make moeny for you and i dont no how to make files for my garud buildings to garud your nation if any other nation trys to attck you or set up a chat room you player can chat live or set up a thing were you can pick a nation to attck or how to add the pics for my game if some won wood help i would like that i have some of the files for halls rpg web game like the login atteck battle register and the context fiels but i dont no if they will work for this or not if you need the files i have to help me E-mail me at wormy677@gmail.com and i will send you the zip files
User avatar
rockinliam
Posts: 466
Joined: Sun Jun 07, 2009 11:26 am

Re: My Nations

Post by rockinliam »

Learn PHP now, write game later, trust me PHP is easy as... follow hall's tutorials and you will gain the skills necessary.
Skillset: C/C++, OpenGL, C#, Lua, PHP, MySql, Web Dev etc.
Website: https://liam-griffiths.co.uk/
ConceptDestiny
Posts: 261
Joined: Wed Apr 28, 2010 8:35 am

Re: My Nations

Post by ConceptDestiny »

rockinliam wrote:Learn PHP now, write game later, trust me PHP is easy as... follow hall's tutorials and you will gain the skills necessary.
I can vouch for that. :D

Also try phpacademy, some great resources there once you've managed to familiarise yourself with the basics. :)
wormy677
Posts: 10
Joined: Fri Dec 03, 2010 5:46 pm

Re: My Nations

Post by wormy677 »

ok will i now no some moer php and i made this file and i know that it is moslty html

Code: Select all

<?php
//include 'connect.php';

?>

<form method="post" action="reguser.php">
Type Username Here: <input type="text" name="player" size="20"><br>
Type Nations Name Here:<input type="text" name="Nation" size="36"><br>
Type Password Here: <input type="text" name="password" size="15"><br>
Retype password: <input type="text" name="pass2" size="15"><br>
Type E-mail address: <input type="text" name="email" size="36"><br>
<input type="submit" value="submit">
</form>
User avatar
Jackolantern
Posts: 10891
Joined: Wed Jul 01, 2009 11:00 pm

Re: My Nations

Post by Jackolantern »

wormy677 wrote:ok will i now no some moer php and i made this file and i know that it is moslty html

Code: Select all

<?php
//include 'connect.php';

?>

<form method="post" action="reguser.php">
Type Username Here: <input type="text" name="player" size="20"><br>
Type Nations Name Here:<input type="text" name="Nation" size="36"><br>
Type Password Here: <input type="text" name="password" size="15"><br>
Retype password: <input type="text" name="pass2" size="15"><br>
Type E-mail address: <input type="text" name="email" size="36"><br>
<input type="submit" value="submit">
</form>
You don't need the connect.php unless you are connecting to a database in the script. This page can be 100% HTML, since no PHP will be used until it gets to reguser.php.
The indelible lord of tl;dr
wormy677
Posts: 10
Joined: Fri Dec 03, 2010 5:46 pm

Re: My Nations

Post by wormy677 »

You don't need the connect.php unless you are connecting to a database in the script. This page can be 100% HTML, since no PHP will be used until it gets to reguser.php.
ok but if i take the connect.php out will in still work.
ConceptDestiny
Posts: 261
Joined: Wed Apr 28, 2010 8:35 am

Re: My Nations

Post by ConceptDestiny »

wormy677 wrote:
You don't need the connect.php unless you are connecting to a database in the script. This page can be 100% HTML, since no PHP will be used until it gets to reguser.php.
ok but if i take the connect.php out will in still work.
If you're connecting to the database, then you need connect.php.

If you're making your page purely html, without access to a database, then no, you don't need it.

Why, what's your mindset regarding this?
User avatar
rockinliam
Posts: 466
Joined: Sun Jun 07, 2009 11:26 am

Re: My Nations

Post by rockinliam »

I just realised you totally posted this in the wrong place as well...
Post Reply

Return to “Code Sharing”