Jump to content

mikesta707

Staff Alumni
  • Posts

    2,965
  • Joined

  • Last visited

Everything posted by mikesta707

  1. For a start, check out some mysql tutorials (if you don't like that one, do a google search) Specifically focus on SELECT queries, and showing the information from that queries. the rest should be simple to figure out
  2. I don't use Macs because of my hatred for Apple. Why do I hate Apple? No reason, i'm just very irrational sometimes, and hate and love things on a whim. Funny thing is I have an iPod (like everyone else) and an Apple sticker on my PC. I have used Macs tho, and they are pretty cool. Not worth the money tho... Once all the glamour fades, and the price goes down maybe ill buy one.
  3. no thats impossible. the variables you are trying to access don't actually exist when you are trying to access them. what exactly are you trying to do? url_decode() theoretically should work, depending on what you are trying to do. However, you could really just set the action to http://site.site.com/validation.aspx and instead of using the $_GET array, use the $_POST array on that aspx page
  4. definitely passwords, but thats because I have a cell phone to store my numbers and such.
  5. you don't end the function. stick a closing curly brace after the last if statement
  6. thats because you have the elseif connected to the if. if you want both to be able to fun, change the elseif to an if. the elseif won't run if the if before it runs (or any other elseifs before it have run)
  7. depends on how your code is set up. the page where you get the $_GET variables, and process them should be where you use url_decode. why don't you just use Post?
  8. depends on what you do with the random map. Do you just want to show an image?
  9. its $_POST['room1'] not $_POST['rooms1']
  10. //then redirect them to the members area header("Location: members.php"); } } else { this else doesn't seem to be matched to any if. You have to match ifs and elses (IE they have to be right behind one another) if () { } else { } //not if (){ //do stuff } //do some other stuff else { }
  11. hmm, can I see the login_user code?
  12. I'm kind of confused on what you want. if you want the value of the drop down box selection, just do $dropDown = $_POST['room1'];//room1 is the name of the select group
  13. ah man i gotta get me one of those.. thats awesome
  14. well as long as you don't put important stuff into the remember me cookies (besides their user and email, but its their computer, so I wouldn't really count that as a risk unless their computer got compromised, but that is something completely out of your control) if they alter their remember me cookies, then.. well.. the remember me stuff probably won't work
  15. obviously line 11 is where your output starts. put the header above that...
  16. Also taking classes that teach you how to solve problems with programming is a great way to learn. While it may not be in the same language as you want to learn, knowing how to solve a problem in one programming language can usually be transfered over to another fairly easily, and learning the theory behind what you are doing never hurts either. if you can't do this, then obviously books are the way to go
  17. oh man thats amazing. are there still golden guns and camo upgrades?
  18. an heroing never looked so good
  19. $_FILES['name'] is the name of the file being uploaded...
  20. if you are just replacing single characters, and not matching against patterns, using str_replace would be faster
  21. ahh yes you can use PHP's CLI which is indeed quite similar to how cin and cout work
  22. you have to define the variable before you use the concatenation and assignment combo operator. something like $errors = ""; should fix the problem if you add that before your code
  23. Can't really do that. PHP can get the time, and can get the time that is 24 hours from then, but you can't tell the page to execute something in 24 hours, unless you manually load the page every 24 hours. if you are only doing 1 CRON a day, (especially one that only updates 1 row of a table) you won't have to worry about server load
  24. did you put your php page into the htdocs folder? only pages there will be executes
×
×
  • 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.