Jump to content

Zane

Administrators
  • Posts

    4,362
  • Joined

  • Last visited

  • Days Won

    11

Everything posted by Zane

  1. if you ran it...then where's the code
  2. it's not PHP..that's art someone probably spent a good month or so on that..maybe longer
  3. don't know..but I'd like to find out. Guess I'll be on Google for a while
  4. you don't have any elements with the id's of Whitetail Deer or Pheasants or any animals...but you do have some options in the select box...it looks like your trying to hide them onchange somehow.. not sure how..still confused on that part
  5. function toggleDivDisplay(theID) { (document.getElementById(theID).style.display == "none") ? (document.getElementById(theID).style.display = "block") : document.getElementById(theID).style.display = "none"; } and then with the divs Some Random Div With Whitetail Deer ringing the necks of turkeys and pheasants The only problem with an onclick toggle...show/hide is that when they're on display none..you can't click them....I guess I should read your code before I posted..
  6. Zane

    encoding question

    well if a is one character and 8 is one character and the hex for รบ is 4 characters you need to find the max characters you would need and set your column varchar's length to that...
  7. definitely not a regex question...and yes..using a cron job is the right idea. there's something your missing in the cron manager...or there's something missing in the cron manager Post a screenshot of your cron manager
  8. Something like this $opt = implode(" ", $o); echo " "; echo " " . $opt . ""; echo " "; The CSS: ul { float: left; width: 12em; margin: 0; padding: 0; list-style: none; } li { float: left; width: 6em; margin: 0; padding: 0; }
  9. The most effective and accurate way of doing something like that is to first check to see if they're an admin/moderator/super user/etc/etc/ and THEN ... use include or require to pull in the restricted page. Most people will first start off checking the status and then echoing it out if they are admin...echoing the error if they aren't, echoing a different page if they're someone else..etc..etc you get my drift you'll need to make a templating system if you want to do it the "correct" way. If you're just trying to throw a school project together then by all means...echo one thing after another. Either way, starting from scratch you're going to have a rough road ahead of you authenticating users and doing stuff about it...like everyone else. But that's a different story and a different thread...as you said this thread is solved...so click solved and read up on some php authentication tutorials. There are a few on the main phpfreaks site itself..written by the same people on the forums
  10. change your script to this <br /> function allocate(theID) {<br /> <br /> scr = document.getElementById(theID);<br /> <br /> a = scr.className;<br /> <br /> if (a=="truck100") {<br /> scr.setAttribute("class", "truck100grey");<br /> }<br /> <br /> if (a=="truck100grey") { <br /> scr.setAttribute("class", "truck100");<br /> }<br /> <br /> }<br />
  11. ok..i believe we're gettin somewhere you want to take this ranking.php?game=fifa09 The bold area...the $_GET variable...known as game and turn it into this SELECT * FROM `fifa09_stats` and if not exactly that statement..then something along the lines of that statement?...am I right? please say yes If I'm right then this is the code for it ------------------------------------ $tableName = $_GET['game'] . "_stats"; $sql = "SELECT * FROM `$tableName`"; .. and you lost me at the fullstops and extra quotes parts...you must know something I don't ...who knows
  12. nothing at all? not even a BLANK option box have you looked at the view source to confirm there IS nothing at all
  13. This is a help forum...not a personal blog/journal/repository of failed attempts. Construct something someone can actually get some use out of to help you with. You're already up to two pages and 12 of the posts are yours. That's like 66% of the thread. including my post
  14. file uploads are stored in the $_FILES superglobal... (instead of $_POST) it looked like this on the inside
  15. what is the code you are using to sort is now
  16. what are you trying to do in the first place?
  17. === means that they are equal AND they are the same type... like...for instance..a string or integer for example: $thevar = "42"; $thevar2 = 42; $thevar === $thevar2 would be false...because the first one is a string, while this next one is true $thevar == $thevar2 /// TRUE
  18. never even took notice that you were in a Class
  19. eval
  20. and wHy would $partOne == $affiliateId in the first. What are these variables? What is this code? In order to get some decent thorough help on this you're going to have to explain what these variables are and why they aren't doing what they're doing. You say $code works fine and does a damn good print_r job.. Well .. what's in it? What is it? What do you want these variables to hold. ...lots of whats. In other words...Only you know what the variables need to hold for them to pass these....if statements you've crafted.. we haven't the slightest clue. You've dumped you're code here from some class I've never seen..in hopes of a miracle answer. It won't happen unless you explain yourself better. No offense. don't freak out or anything..just bein straight with ya.
  21. nah...I guess so long as it works for you then...it works.. you may want to put a big comment block in there to remind you of why you have to open and close the php tags..if not to inform someone else. just remember to mark as solved if you're done
  22. which for loop(s).? why is it screwed up? where exactly is the problem...exactly?
  23. I know I'm not coding this but it seems to me that you're in the GoogleAnalytics Class trying to access one of it's(AKA this) static properties GoogleAnalytics::$key or $this->key Why can't you just use $this->key?....along with the heredoc or have you tried that already
  24. http://bugs.php.net/bug.php?id=41776
×
×
  • 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.