Jump to content

korrupt_23

Members
  • Posts

    13
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

korrupt_23's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks man, and I do know about the 0,5, but 5 does work the same.. And yes, I did get it fixed, but I don\'t know how.. I changed too many things at once :oops: Thanks again for trying man!
  2. Hmm, well, I\'m really not sure why this coding isn\'t working.. and I\'m usually fair with mySQL.. but.. here goes.. Please tell me if you see anything wrong, even the smallest thing wrong in this code. The problem is it doesn\'t LIMIT to 5, only 1... <? @include("connect2.php"); $sql = "SELECT * FROM clicks ORDER BY \'unique\' DESC LIMIT 5"; $result = mysql_query($sql); $number = mysql_numrows($result); $i = 0; $name = mysql_result($result,$i, "pagename"); $clicks = mysql_result($result,$i, "raw"); $unique = mysql_result($result,$i, "unique"); echo " <TR> <TD WIDTH="40%" ALIGN="CENTER"> $name </TD> <TD WIDTH="25%" ALIGN="CENTER"> $unique </TD> <TD WIDTH="30%" ALIGN="CENTER"> Download </TD> </TR> "; $i++; ?> Anything? Or any ideas? Thanks very much..
  3. Well, I\'m attempting to use a query to select a column and check if it\'s = to a number. I have a vague idear, but it doesn\'t seem to wanna work... Thanks in advanced everyone, all this small question really help me.
  4. Ah, I do see a little bit.. thanks. It cleared up a few confusing things I had problems with.
  5. korrupt_23

    LIMITS

    Hey, just quick question, but how would you make a limit be something though something. For example, 20 through 40? I thought it was.. LIMIT 20.40 But it seems to cut it off at a weird point, so I just wanna make sure. Thanks in advanced.
  6. Thanks so much man! That stupid litte backtick :x I love this place, everyone always trys to help, or helps wonderfully! Weee!
  7. korrupt_23

    Adding

    Hey, I was just wondering the easiet way to add to a column. I\'m attempting to use: <? include("connect.php"); $sql4 = "UPDATE `user_info` SET `user_movie_points` = `user_movie_points+1` WHERE `user_id` = \'$userid\' LIMIT 1;"; mysql_query($sql4); ?> But it doesn\'t seem to work. Anyone see anything worng, or can give me a better way?
  8. Well, just to justify what the problem was.. Since there has been a new version of PHP released lately, hosts have been installing them as soon as they get it, which changes the way you include. Now most includes have changed to <? @include("file.php") ?> You have to add in that @ to get rid of the seeking error and all. Just if anyone really cared. :shock:
  9. Please excuse the double post again, but... It\'s weird because I\'ve been playing with the formating of the include, and on one of the includes, it fixed it. I changed <? include \'vars.php\'; ?> to <? include (\'vars.php\'); ?> And the seeking error disapeared. I\'ve never had this error before. What\'s the difference between remote files and relative ones? :?
  10. What would be the difference between relative and remote? :?
  11. Someone has to know. :? (Sorry to double post, but needed to draw attention back)
  12. Well, I can\'t figure out another error message that\'s been popping up all over: Does anyone have any clue what that means? I\'ve checked the pages, and it\'s not even any PHP markup where it says the error is. You can see the error in action by going to http://www.stickslaughter.com Thanks in advanced. :?:
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.