Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. Then that may not be the column/table you need to be checking. Which table has the product price in it?
  2. If you have 2 functions named the same thing, how do you expect javascript knows which one to use. Like Dj Kat said, rename one and see what happens. Does firebug give you an error?
  3. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=321088.0
  4. Use LIMIT: SELECT * FROM users ORDER BY dirStamp DESC LIMIT 10
  5. Google my man Basic: http://www.w3schools.com/php/php_get.asp The manual: http://php.net/manual/en/reserved.variables.get.php
  6. I think you want this: AND patrib.options_values_price > 0.00 The column name feels weird but it's the only one that the price could possibly be. Is options_values_price the price you're trying to check?
  7. Even if that worked, I don't see the difference between the two, it's essentially the same thing minus the two variables. Did you want to get the emails from a form? Tell us what you're trying to do.
  8. Oh, I wasn't sure exactly what the column name or the table name was. I just assumed the product's price would reside in the product attribute table (pa). You may have to find the correct table and column name.
  9. This topic has been moved to PHP Regex. http://www.phpfreaks.com/forums/index.php?topic=321050.0
  10. What's the error?
  11. Add a condition in the query that selects the items and check for price. AND pa.products_price > 0.00
  12. This topic has been moved to PHP Installation & Configuration. http://www.phpfreaks.com/forums/index.php?topic=321067.0
  13. You're using it appropriately and there are ways to check this. An except from the manual:
  14. This topic has been moved to Beta Test Your Stuff!. http://www.phpfreaks.com/forums/index.php?topic=320980.0
  15. Google 'php browser detection', you should get plenty of hits.
  16. Yes, there is a fatal error which in return shows a blank page. For temporary debugging you can add these 2 lines directly after your opening <?php tag to see the error: ini_set ("display_errors", "1"); error_reporting(E_ALL); (Please use tags)
  17. I would think that the INSERT would be executed every time since you are assigning $row to 1: if ($row = 0) { which is always true. I think you want: if ($row === 0) {
  18. If you use the first one you can use a more descriptive variable name. Also, if you define a new variable the POST then you only have to manipulate it one time. For example, if you want to sanitize your POST value you would only have to call mysql_real_escape_string once. If you used the latter example, then you would need to call it every time you wanted to use it.
  19. Good point Pika. Depending on what you want to do this might be better.
  20. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=320886.0
  21. You most likely have some sort of auto-incremented id in which you can use with a basic query: SELECT * FROM table ORDER BY id DESC LIMIT 1
  22. This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=320884.0
  23. That's relative to what you're working on. Check out - Database Normalization.
  24. Sounds like you're asking if you should use a relational database or not? Most likely yes, but in some cases no. Depends on what exactly you're trying to do.
  25. Hmmm..... ok good.
×
×
  • 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.