
Jake
Members-
Posts
106 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by Jake
-
Re: Jail break The higher the number the easier it is to break out.
-
Re: Keywords There were originally no keywords in header.php, but i added this: <html> <head> <title>The Liberation</title> <META name="Description" content="The Liberation is a unique RPG, with an in-depth storyline. Play this army style RPG today."> <META name="keywords" content="liberation, army, RPG, role playing game, torn city, carlton, game, bored, fun, POW, camp"> And it appears not to be working, can anybody copy me their meta tags so that i can edit them for my game.
-
Re: Simple MySQL Insert error. I have tried that, and it still does not work.
-
I dont know why this isn't working, i've checked all of the field names from the database. And even copied and pasted from other Inserts, but its not working: $myfirm=mysql_query("SELECT * FROM firms WHERE fID={$_GET['ID']}",$c); $mf=mysql_fetch_array($myfirm); $warfirm=mysql_query("SELECT * FROM firms WHERE fID={$_GET['WID']}",$c); $wf=mysql_fetch_array($warfirm); mysql_query("INSERT INTO firmwars VALUES('', '{$my['fID']}', '{$my['fNAME']}', '{$wf['fID']}', '{$wf['fNAME']}', '0')",$c); It is for my gangs mod. I get not error, it just simply doesn't happen.
-
I was browsing my sites stats the other day to see my keywords. I saw them, and noticed they were the ones pre-installed, or whatever. I am yet to see where i can change, and edit these. I am using the official cPanel, please can you tell me!
-
Hey, im having some trobules with forums. I don't really know how to print a users level, and amount of forum posts next to their reply. This is what i currently have: $ab=mysql_query("SELECT * FROM forumposts WHERE postTHREAD={$_GET['thread']} ORDER BY postID ASC",$c); $a=mysql_fetch_array($ab); $reply=mysql_query("SELECT * FROM users WHERE userid={$a['postUSERID']}",$c); $reply1=mysql_fetch_array($reply); And then this is the table where it prints it: {$r['postUSERNAME']} Level:{$reply1['level']} Posts:{$reply1['forumposts']} {$r['postTEXT']} "; This prints one person's level and posts for every bodys response. Somebody help please
-
When making tables in PHP...(this is really nooby) , how do i set the width of a column, because all of mine alter depending on the content. Also, when i end a table, and put text/line break, then start a new table, the text appears above both tables, why is this?
-
Re: Urgent -- Sign Up Bug... Problem fixed, excuse the amateur dramatics
-
Re: Urgent -- Sign Up Bug... Yes it is correct that when the email address is not entered that message come up. But during registration. It is not entering the values into the User Stats column. This is the code i have for mysql Inserts. I was wondering if someone could just copy me theres, and i could test it to see if it worked: mysql_query("INSERT INTO users (username, login_name, userpass, level, money, user_level, energy, maxenergy, will, maxwill, brave, maxbrave, hp, maxhp, location, gender, signedup, email, lastip, realname, realage, msn, aim, country, city) VALUES( '{$username}', '{$username}', md5('{$_POST['password']}'), 1, $sm, 1, 12, 12, 100, 100, 5, 5, 100, 100, 1, '{$_POST['gender']}', unix_timestamp(), '{$_POST['email']}', '$ip', '{$_POST['realname']}', '{$_POST['age']}', '{$_POST['msn']}' , '{$_POST['aim']}', '{$_POST['country']}', '{$_POST['city']}')", $c); $i=mysql_insert_id($c); mysql_query("INSERT INTO userstats VALUES($i, 10, 10, 10, 10, 10, 0, 0, 0, 0, 0, 0, 0)", $c);
-
Re: Urgent -- Sign Up Bug... Yes it is lite. Yes i have edited user details. I have added a details section, rather than just the basics. I uploaded my original from the .zip file that i downloaded, and i get the blank page that says your account may be broken email [email protected] usually happens when the data is entered into the users table but not the userstats tables. This is the case i have checked. What do you mean find that error? its on like one, and it doesn't say which file??
-
Whenever users Sign up and log in, their account is broke. I have no idea what the problem is. Please can someone have a look: www.the-liberation.com ... no email validation please can someone just have a look and tell me what the error is.
-
Hi, i am going to be switching my hosting provider soon as the bandwidth is almost all taken up. (I currently only have 750MB, i got this just to start up). I need to know: > How much bandwidth i will need (For 10K members, currently only have 100, but I'm optimistic) > Any good hosting providers, the cheaper the better. > How to make a copy of the MySQL database to easily switch over to the other hosting provider. (Please give basic instructions, with minimal Jargon, I'm not a noob, but nor am i an expert.) > Any extra advice. > Thanks, Jake.
-
Re: MySQL fetch array Ok thanks, will try that. Do you not need the $c? O its on all of the files i downloaded with it, so i just leave it on.
-
I am making a big report system, but for some reason i am getting this error: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/thelib/public_html/bugreport.php on line 45 These are the lines: else { $q=mysql_query("SELECT * FROM bugreport WHERE '{$_GET['ID']}'==bugid ORDER BY bugid ASC",$c); $r=mysql_fetch_array($q); Help please!
-
Re: Page Redirection. Problem Fixed.
-
This is where rewards can be given for voting: <?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']); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm); $h->menuarea(); print "[b]You will be redirected to the Apex voting site, in a few seconds Impatient? [url='http://apexwebgaming.com/in/1499']Click Here[/url][/b]"; mysql_query ("UPDATE users SET energy=energy+5 WHERE userid=$userid",$c); header('Location:http://apexwebgaming.com/in/1499'); $h->endpage(); ?> thats what i have, and this is the error i get: Warning: Cannot modify header information - headers already sent by (output started at /home/thelib/public_html/header.php:41) in /home/thelib/public_html/voteapex.php on line 22 Now i hate to be a copy, and paste coder, but i've never done anything like this and i just wondered what i need to change/add/remove from the code to make it work?
-
Re: Rewards for voting So i need a redirecting page...on which the reward is given, ok i'll work on this, thanks a lot. On my voting page i have a list of different sites they can vote on. And the site name is the link like this print "[url='http://apexwebgaming.com/in/1499']Vote at Apex Web Gaming[/url] "; So instead of using a direct page like that, should i have that link going to something like : the-liberation.com/voteapex.php ... And then on that page, do the necessary MySQL updates, and then have something like this: header('Location:http://apexwebgaming.com/in/1499');
-
I have no idea how to go about making the code for giving users rewards for voting. Can someone help me? [email protected] the-liberation.com
-
Re: Attacking/Hospital code, basic error Problem Fixed.
-
Why is this code not working? $hospitaltime=rand (30,270); $hospitalreason=Mugged by {$ir['username']}; mysql_query("UPDATE users SET hospital=$hospitaltime WHERE userid={$r['userid']}",$c); mysql_query("UPDATE users SET hospitalreason=$hospitalreason WHERE userid={$r['userid']}",$c);
-
Re: sums also, why dont you simply divide by 50, instead of dividing by 100, then * 2
-
Re: WAMP 5 Ok, Your database should have an '_' somewhere. Eg, My cPanel/Php-myadmin log in name is XXX, and my database is YYY, so...i believe it would be XXX_YYY i think :?
-
Re: SQL Injection Hate to sound like a noob, but..what is this? it sounds important?
-
Wasn't sure where to put this topic. I was wondering what you game owners have found the best way of advertising is? Obviously I've put my site onto all the voting sites, but at the moment I've got about 10 users, that i haven't personally told to sign up. The game is only 2 weeks old, but i would like to see at least 100/200 members within 2-3 weeks. I have absolutely no money to spend on this, so i was also wondering if any game owners were interested in banner sharing, or likewise? At the moment i can see why it doesn't look very appealing, but when we get more members, then it should even out. If you like we good just do it for a month or so, and see how it works out? Even if it was just a little link on the menu bar saying: affiliated sites (or something) then your URL What do you think?
-
Re: sums i believe you have misplaced your first bracket, and that it needs to be after the $