Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. What are PHP calcs? What happens? What is supposed to happen? Are there error messages?
  2. You need parenthesis around the first 3 ORs for that to be true.
  3. Check this link out: http://api.jquery.com/show/ There are examples and demos that show you.
  4. Sure, but we are going to need to see some code before we can help.
  5. This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=321530.0
  6. Glad you found what you were looking for. If this thread is resolved please mark as so.
  7. AJAX is just a concept, JQuery is a framework for javascript which would be able to perform AJAXian actions. I personally use JQuery, it's a solid framework but any of them would work for what you're trying to do.
  8. I think that's actually fine.
  9. preg_match takes (string, string) and you're passing in an array for the first parameter. Not entirely sure what you're trying to do here... If you want to check if $first_name exists in the array of bad words then use in_array.
  10. This should help: http://forum.codecall.net/javascript-css/7114-javascript-add-text-input-field.html
  11. I added tags for you this time, please use them next time.
  12. Sorry, didn't see this post earlier. What problems?
  13. As Pika pointed out there's alternative syntax for IF statements. In this particular case an if, else, or elseif will execute what is started on the first line directly following it.
  14. Yes, you have to add it to your .htaccess. I'm not very good with mod_rewrite rules but if you search this forum you will see examples similar to yours, it's a pretty common question. This may help: http://www.phpfreaks.com/forums/mod_rewrite/passing-additional-get-variables/
  15. This topic has been moved to mod_rewrite. http://www.phpfreaks.com/forums/index.php?topic=321151.0
  16. Did you fix this issue? $_SESSION['username']=='$username'; 1) You're using comparison, so you never assign that session variable to anything. 2) Even if you used assignment (=) you would be assigning the literal string '$username' and NOT the variable's value.
  17. Does anything happen or is it a blank page?
  18. I see 2 issues that stick out: This will literally assign the string '$username' to sessions which ultimately is searched for in your query and it won't find anything. $_SESSION['username']=='$username'; In your DELETE query you have: AND AND id='$id'"); which is incorrect syntax.
  19. Please do not post a thread with replies from another forum. Ask your original question or the spot where are you currently stuck, no one will help you otherwise.
  20. The tutorial and examples are pretty solid but if you have specific questions be sure to ask
  21. You're missing your starting 'form' element tag.
  22. I understand what you're saying (kind of) but I was looking for more of a technical answer as to why you want to use sessions.
  23. A. I tend to use darker backgrounds. I use vim and gedit a lot and both backgrounds are black. The only editor I use is Eclipse which has a white background but probably could be changed. B. No, but it would be interesting.
  24. Sure, you can use sessions to store some things but I wouldn't base an entire game off of it. Why do you feel the need to use entirely sessions?
  25. mod_rewrite actually has its own section, I'll move your thread there.
×
×
  • 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.