Jump to content
MakeWebGames

skizzy

Members
  • Posts

    56
  • Joined

  • Last visited

Everything posted by skizzy

  1. there is no error and i added it to the table as it shows the ip my header but wontupdate the ip with the new the generated ip for the game im making
  2. im currently working on a new game and i can't seem to get this code to update a field in my db. can some please help me with this <?php session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $gip=make_ip(); function make_ip(){ $inum1 = rand(0,255); $inum2 = rand(0,255); $inum3 = rand(0,255); $inum4 = rand(0,255); $ip = $inum1.'.'.$inum2.'.'.$inum3.'.'.$inum4; return $ip; } echo "Ip set to"; echo make_ip(); mysql_query("UPDATE users set Gameip=$gip WHERE userid=$userid",$c); ?>
  3. the layout was messed up cause i forgot to turn off php display_errors last night after i was fixing a section of the game and the only person that had alot of money was an NPC and that is most likely to be reset before it goes beta i would take out the information center out if some one could tell me how to make javascript run a php if statement
  4. i know the design needs a little work. but thanks on the menu
  5. lol why is that
  6. i don't know why you don't got the plugin can your computer even play an avi file thats about the only thing you might need a plugin for it works fine on my firefox . ?( but i will remove it for now as i see what the issue is with it.
×
×
  • Create New...