Jump to content

mikesta707

Staff Alumni
  • Posts

    2,965
  • Joined

  • Last visited

Everything posted by mikesta707

  1. Not with PHP, you can use Javascript to submit the form automatically, or you can just submit the variable to the processing page itself
  2. $e_gang = $e_gquery->fectrow(); do you mean fetchrow? $e_gang = $e_gquery->fetchrow(); if you actually read the error messages it will probably help identify the error
  3. Very true, and I should have expanded on my answer. I suggest fixing it now so you don't have to worry about it later, unless you plan on getting out of the web design any time soon
  4. Yeah i played until wotlk too. It just feels like a Job, and not a game. Especially if you are doing high end content. you need to be at certain places at certain times, and grinding was boring as hell.
  5. go into your PHP.ini and set register_globals to on
  6. Do you have session_start() at the beginning of the page?
  7. http://www.destructoid.com/man-beats-world-of-warcraft-156593.phtml Apparently someone has beaten World of Warcraft. Anyone here play? I loled heartily when I read this, at least he has some sort of accomplishment for the complete lack of hygiene/women/etc. that he had to deal with. I'm sure he had fun though
  8. You probably had register globals set to ON in your php.ini, and with some update to your server it was set off, slyte's suggestion should probably work
  9. what do you mean in mysql? do you mean in a mysql query? surely str_replace() will suit your needs there. Can you explain your question a little more
  10. I hope this is all one big joke, and that we aren't seriously discussing the 911 "conspiracy"
  11. switch($example){ case 1: //stuff break; case 2: //stuff break; } Its called a switch/case statement
  12. I believe so, yes
  13. you answered your own question UPDATE database SET fullName = name + surname that should do it.
  14. There is a chmod command in php you can use
  15. Seems good to me. What you need to remember is that "best practice" doesn't always work for everyone. If the system you have currently works best for you, and makes editing your site/adding new things easier, than all the power to you. That's not to say that certain practices aren't terrible, but as long as you stray away from bad practice, then what you are doing is most likely fine.
  16. not having inheritance and using OOP are not mutually exclusive. Hell not having classes and using OOP are not mutually exclusive either. Look at Javascript, its OOP system is prototypal (is that a word) rather than classical. Oh, and why should you use OOP? because it rocks. But in all seriousness, its not about one being better than the other. Its about what tool is best for the job. The whole hammer vs. screwdriver vs. wrench debate.
  17. I had written a huge reply, and I accidently closed the damn page... well long story short, web design is kind of a job (as i do some freelance work when I can) but its mostly a hobby, as I'm getting more into desktop application programming
  18. what code do you have that tries to display all the days? surely you can use a loop to do this
  19. post the exact error you get
  20. in addition to include() and its derivatives, you cold use get_file_contents() and use eval, but its basically the same thing
  21. the code you posted only says : jpg not image/jpg
  22. first thing here '',$_POST[firstname]' you have an unmatched single quote '','$_POST[firstname]' also you need to surround your array variables with curly brackets, IE '','{$_POST[firstname]}'
  23. your query is probably failing. For debugging purposes, add or die(mysqli_error($connect)); and see what the error says
  24. Content-type has to be a valid mime-type. http://www.w3schools.com/media/media_mimeref.asp that has a list of mime types for the different file types
  25. Im not sure of your question. Are you asking how to prompt the user to download the file on a link click (IE a forced download?)
×
×
  • 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.