Jump to content

Jessica

Staff Alumni
  • Posts

    8,968
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by Jessica

  1. First, isset(). Then you can use strlen() if it's a string to see how many characters long it is.
  2. Firefox can be a memory hog, be sure to completely shut down Fx and then restart it (check your processes, Fx memory leak can consume 55%+) and see if it improves. Otherwise, no ideas here.
  3. read about $_GLOBALS and how to use $_POST instead.
  4. That means your variables are empty, which makes sense because I don't see you setting them. NEVER use globals! You need to process your $_POST array from your form. (Or $_GET, but I'd use $_POST for a form)
  5. Or, use the equals if you only want exactly that. field = 'bat.zip'
  6. In jquery, you no longer use things like onLoad="function". You would use the document.ready() code. http://docs.jquery.com/How_jQuery_Works#Launching_Code_on_Document_Ready
  7. So this is a javascript problem. Personally, I would redirect using php because not everyone has javascript turned on. This just looks sloppy to me,.
  8. Those are apostraphes, not ticks. ' != `
  9. Rename them to "hour_1". You're actually selecting the value "1" when you do SELECT 1 FROM table. You can also try SELECT `1` FROM table. But it'd be better in the long run to use more descriptive names.
  10. You would need to add a parameter to your submissions table, marking if a submission was approved or not.
  11. I assume you are using your real email in the code? Check your junk folder. And turn on error reporting.
  12. Is that about my post? *sigh* No, it was my response to the Op saying he gets no errors.
  13. Did you try looking up date()? Not to mention, PHP runs on the server, not the client. There is NO WAY PHP's date function could ever access client's date and time. None.
  14. Jessica

    Some help

    Are you converting the text using html entities or anything?
  15. I don't think I can simplify how to add text to the end of other text any more than that. If you're that new, rather than attempting something complicated, and using other people's code, read tutorials and learn yourself, do small projects, and work up to something involving texting.
  16. You changed your computer's time, and you're using your computer as your host, and you aren't sure why your server's time changed....?
  17. It's the way I'd do it. a good random value is the user's username or user_id plus the timestamp. Store the new file name in your user table. I'm not good at dealing with cache issues, so this is how I do it. There may be another way.
  18. Do you rename the file? If so, make sure each file has a unique name. Don't reuse the names from old files.
  19. Uhm... $msgText .= "Whatever"; You go from using your parameters from the function, to using the $_REQUEST array, which will probably cause problems.
  20. It's called a ternary operator. it's in the place of "if else".
  21. 1. you're redirecting before you do anything. If you want things to happen before you redirect, you need to rearrange your code. 2. Don't suppress errors (@) during development.
×
×
  • 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.