Jump to content

.josh

Staff Alumni
  • Posts

    14,780
  • Joined

  • Last visited

  • Days Won

    43

Everything posted by .josh

  1. uh...no. You need a clientside language to do that, like javascript. Look into AJAX, which is a method of mixing javascript with php. There are plenty of tutorials out there for "loader" screens, which in principle is the same thing as what you want.
  2. - add or trigger_error(); after all your mysql function calls. - echo out your variables, including $query to make sure everything is holding what you expect - make sure your table name is correct, db name is correct, etc.. - make sure you are putting the variables in the same order as what's in your table - try the echoed $query directly into your db in phpmyadmin or whatever If you still can't figure it out, post error messages, and other relevant oddities
  3. http://us3.php.net/mysql
  4. Pictures: Personally, I love it. I wish the little lens holder picture on the bottom left had a more meaningful representation of your site than simply a blue contact lens... but other than that, I loved the design. But that's just me. I couldn't possibly tell you if that's some kind of accepted standard in design or not. Functionally: It does seem to be broken in my browser. The bottom left-right scrollbar only goes halfway or so across the bottom. Can't say I really like that scrollbar thing. And when I scroll to the right, the text seems to overstep it's left boundary. Also I can't say I like the while colored font. Can't read it at all.
  5. try taking out the ; on Sum(fines.fine_amount);
  6. You put your code in there. Your condition checks if user meets level requirements, if they do, then...put the code in there. Then you would use option #3, the one where I said "..with specific numbers" $blah = array(3, 4, 7); if ($op=='message' && in_array($group_id, $blah)) { ... } If you just wnat 3 and 5 then change the numbers in the array(..) to just 3 and 5.
  7. try using regular single quote ' ' instead of those..whatever those are.
  8. I don't see you doing a $i++; in your main while loop edit: whoops nevermind didn't scroll down lol hmm maybe it's because you need to move your other vars inside the foreach loop?
  9. [quote author=448191 link=topic=106377.msg908279#msg908279 date=1212867012] Next thing you know you're gonna tell me that usernames 'must contain at least one letter' or 'can't start with a number'... [/quote] Dammit, who let you in on the plan???
  10. so...try anything new? change anything? Or do we file this under "X-Files" lol
  11. right. $x = 0; while ($array[1][$x]) { //code here $x = $x + 2; } or a slightly different method: foreach($array[1] as $key => $val) { if (($key % 2) == 0) { // this position is even numbered } else { // this position is odd numbered..don't need the 'else' if you don't need to do something // special if it's odd } }
  12. ha Well to be honest I'm kinda stumped now too. I'm about out of ideas myself :/ Have you tried it in a different browser? Like FF instead of IE or visa versa or Opera etc..?
  13. Well did you go to your server and check if the files/folders are still on your server or are they being properly deleted? If they are, then at least we know that part is working...
  14. ermm...well, some browsers and versions of browsers require all parameters to be set in order to set a cookie, but you did say that the cookies are there...and you did make sure you have your browser set to allow sending cookie info?
  15. and I know this is a dumb question, but to clarify: the condition is failing, and the query is not being executed, right?
  16. and you know for sure that the cookie is being set right? And...how are you retrieving the cookie? Name spelled right in your script(s) in the other directory? etc...
  17. I know it's supposed to be the same thing, but try doing ".blah.com" instead of "/"
  18. well i mean, you're executing server commands to delete a file. If you want some sort of output, you have to echo something. Go on your server and see if the stuff is still there...
  19. chmod permissions for the folder/files set right?
  20. instead of using all those conditions and loops, you can use preg_match to find the first occurance and deal with it accordingly.
  21. $group_id >= 3 if you want everything 3++ or $group_id >= 3 && $group_id <= 7 if you want it to be in that range. or for those specific 3 numbers: $blah = array(3, 4, 7); if ($op=='message' && in_array($group_id, $blah)) { ... }
  22. Yeah...tell that to 99% of the people who come here who have no formal education in php or even programming in general. The bottom line is that they don't care, nor will they ever care. They want a quick and dirty solution, so I give it as much as possible. This isn't some hospital or dr's office where people strive to go by the book 100% of the time. This is a warzone and we're field medics pulling McGuyver-like operations to keep the soldiers up. Suck it up soldier!
  23. [quote author=TheFilmGod link=topic=106377.msg908175#msg908175 date=1212857210] [quote author=O link=topic=106377.msg907452#msg907452 date=1212765096] My name is the sound women make when they see me... [/quote] lol! - Isn't there a problem with the forum/registration if it allows user names with just one letter? [/quote] Apparently we don't care.  Or maybe he used some international characters to circumvent the length check or something.  I personally don't really see the harm in it, but that's just me.  LOL maybe I should change his user name to "Ohface"
  24. haha yeah I just suggested it to help him find his bug, that's all.
  25. add ... or die(mysql_error()); to the end of your mysql function calls see if it give you a message.
×
×
  • 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.