Jump to content
MakeWebGames

eboy23

Members
  • Posts

    14
  • Joined

  • Last visited

eboy23's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. eboy23

    Error Need Help

    So your saying that the code is correct that it is just something on my side? I am using Xampp could this cause an error like this?
  2. eboy23

    Error Need Help

    So I found a tutorial online on creating a very basic game. I have all the files uploaded correctly but everytime i log in i keep getting a error. Notice: Undefined index: name in C:\xampp\htdocs\game2\Safe.php on line 83 Here is the code $sql = "SELECT id FROM crimetimes WHERE name='".mysql_real_escape_string($_POST['name'])."'"; $query = mysql_query($sql) or die(mysql_error()); $m_count = mysql_num_rows($query); if($m_count >= "1"){ }else{ $sql = "INSERT INTO crimetimes SET id = '$id' , name = '$name', crime1 = '0' , crime1a = '0' , crime2 = '0' ,crime2a = '0' , crime3 = '0' , crime3a = '0' , crime4 = '0' , crime4a = '0' , crime5 = '0' , crime5a = '0'"; $res = mysql_query($sql); } I'm not exactly sure what is wrong with this and was wondering if someone could help me fix it. I am trying to get a very basic engine running correctly so i can mess around with it and learn some php while learning how to code properly in my classes in college and eventually create my own game. Any help would be appreciated
  3. is there any way that you could edit it so i could have mulitiple pages closed at the same time.... instead of just all the website or one page closed? and could you also have it so you could select which pages to reopen??
  4. Can someone please help me remove >. i cant find out where that is comming from in the file maybe you guys might be able to help me out. here is the shops file code <?php include "globals.php"; $_GET['shop'] = abs((int) $_GET['shop']); if(!$_GET['shop']) { print "You begin looking through town and you see a few shops. "; $q=$db->query("SELECT * FROM shops WHERE shopLOCATION={$ir['location']}"); print "[img=/images/layoutt.png]<table cellspacing=1 width='85%' bgcolor='#680000'><tr><th>Shop</th><th>Description</th></tr>"; while($r=$db->fetch_row($q)) { print "<tr><td>[url='shops.php?shop={$r[']{$r['shopNAME']}[/url]</td><td>{$r['shopDESCRIPTION']}</td></tr>"; } print "</table>[img=/images/layoutb.png]"; } else { $sd=$db->query("SELECT * FROM shops WHERE shopID={$_GET['shop']}"); if($db->num_rows($sd)) { $shopdata=$db->fetch_row($sd); if($shopdata['shopLOCATION'] == $ir['location']) { print "Browsing items at [b]{$shopdata['shopNAME']}...[/b] [img=/images/layoutt.png] <table cellspacing=1 bgcolor='#680000' width='75%'> <tr> <th>Item</th><th>Image</th><th>Description</th><th>Price</th><th>Sell Price</th><th>Buy</th></tr>"; $qtwo=$db->query("SELECT si.*,i.*,it.* FROM shopitems si LEFT JOIN items i ON si.sitemITEMID=i.itmid LEFT JOIN itemtypes it ON i.itmtype=it.itmtypeid WHERE si.sitemSHOP={$_GET['shop']} ORDER BY i.itmtype ASC, i.itmbuyprice ASC, i.itmname ASC"); $lt=""; while($r=$db->fetch_row($qtwo)) { if($lt!=$r['itmtypename']) { $lt=$r['itmtypename']; print "\n<tr><th colspan=6>{$lt}</th></tr>"; } print "\n<tr><td>{$r['itmname']}</td>><td>[img=itempics/{$r[]</td><td>{$r['itmdesc']}</td><td>\${$r['itmbuyprice']}</td><td>\${$r['itmsellprice']}</td><td><form action='itembuy.php?ID={$r['itmid']}' method='post'>Qty: <input type='text' name='qty' value='1' /><input type='submit' value='Buy' /></form></td></tr>"; } print "</table>[img=/images/layoutb.png]"; } else { print "You are trying to access a shop in another city!"; } } else { print "You are trying to access an invalid shop!"; } } $h->endpage(); ?>
  5. ive tried adding notepads to staff panel but i keep getting errors so can someone please tell me how i can add more notepads to staff panel?
  6. im talking about like what things should i secure like what hacks and stuff??
  7. Im learning to code and ive read that mccodes isnt secure so i was wondering if i could get a list of things that need to be secured and maybe links if there is already posts about it. This would really help me alot.
  8. my host i use doesnt support cron jobs and i really dont want to move. so i was wondering can someone help me by making me time stamp codes for the main things like energy, will, You know what i mean or can you help me by telling me what to do
  9. how do you get ur code there do you add that in the file name after the cronjob.php?
  10. i use sqweebs.com for my webhost i tried to do the cronjobs but they dont work can someone give me instructions on how to install them?
  11. I downloaded mccodes lite since im new to all this coding stuff. I have been going though a lot of mods and since i have lite i know i need mccodes V1 mods but with most of those mods it calls for editing smenu.php but mccodes lite doesnt come with that. So i was wondering can someone help me create a smenu.php file or give me a smenu.php file?
  12. what about the smenu.php can someone help me with this because alot of mods require edits to smenu.php but i dont have that file
  13. okay thanks so far but im still wondering about the smenu.php file can someone help me with that?
  14. im new to this coding stuff and i downloaded the mccodes lite version my first question is why dont i have a smenu.php file? i havent done any edits so could someone give me the source code for that? my second question is whats all this stuff about V1 and V2 mods? will these mods still work on mccodes lite?
×
×
  • Create New...