Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. You don't need an IF for every condition. if ($day == 'thursday' && $time == '0800' && $country == 'uk') { $meal = 'bacon and eggs'; } else { $meal = 'sausages'; }
  2. Do you have criteria for the password? Here are a couple short scripts to give you an idea: http://www.anyexample.com/programming/php/php__password_generation.xml
  3. Did you intend to post this into "Other Libraries and Frameworks"? I can move it if you want.
  4. You can use PHP variables in JS but not the other way around. You will need something like AJAX to have JS talk to PHP.
  5. Could you elaborate? I don't know what this means.
  6. Your query is probably failing. Temporarily add or die(mysql_error()) to the mysql_query to see what's wrong.
  7. Check out full-text searching - http://dev.mysql.com/doc/refman/5.0/en/fulltext-search.html
  8. Whoa. One question at a time. Post the table definitions that are needed (probably 'actor' and 'film_actor') and your attempted query, then we will help you.
  9. elseif (!is_numeric($input)) Since you haven't inputted anything in your form then $input == NULL. Which this elseif is true because NULL isn't numeric so your logic is correct. You should check to see if $_POST['number'] isset and if it is then assign $input to it, if not, initialize $input to something else.
  10. The code provided will do that.
  11. You just contradicted yourself. What exactly are you trying to see? You cannot see server side code, only client side.
  12. Did you read the manual? It explains how it works and gives you multiple examples of how to use it. There are other options depending on exactly what you want to do.
  13. The code you provided didn't show a hint of you trying to implement what you were trying to do. If you provide the failing code with the example(s) you've tried then we can better assist you.
  14. Just Google "php lost password", there are plenty of examples.
  15. This topic has been moved to PHP Regex. http://www.phpfreaks.com/forums/index.php?topic=317764.0
  16. It's right on their site: http://www.symfony-project.org/getting-started/1_4/en/ There is a link, "Symfony Installation".
  17. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=317758.0
  18. Check out: http://php.net/manual/en/function.file-get-contents.php
  19. Please tell us what make you think it doesn't work.
  20. Sorry, this is just the way things are. I don't think you'll find it different elsewhere unless you're paying a fee or freelance it to someone. Good luck.
  21. Just a side note, for handling errors, specifically mysql ones in your case, read this - http://www.phpfreaks.com/blog/or-die-must-die
  22. To tell you the truth, this is a free help forum, not many people are going to write the code for you. The point of a tutorial is to read & understand it so you can implement it yourself. If you have trouble, post the code and we'll help you with specific problems.
  23. Sorry I didn't get back to you. Thinking about it, a better solution would be pagination. There is a well written tutorial here: http://www.phpfreaks.com/tutorial/basic-pagination If you have any questions just ask.
  24. We need to know how you want the user interface to look before giving you more advice. (checkboxes, manual type team names etc...)
  25. Yes, it's possible. Currently, that value is dictated by the individual team link. You have have to create something to allow the user to choose multiple teams (Like a checkbox next to each team or something).
×
×
  • 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.