Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. It's shorthand for an if/else block. Basically, it checks to see if the last character is a '-', if it is, concatenate nothing, if not, it will add a '-' on the end of the string. Read this - http://us3.php.net/ternary
  2. Can you post the relevant code for this error?
  3. thread ------------- name id replies ------------- text id t_id You would know that all replies with a specific t_id are linked to a specific thread.
  4. Not sure, I don't use PHPMyAdmin.
  5. In the future, please use tags around your code.
  6. For what?
  7. I know I sound redundant but, I agree with everyone else. As long as you're polite, know why and how to fix it, you should correct 'false info'.
  8. Google and read some articles: http://www.mikebernat.com/blog/Setting-Up_a_Relational_Database_in_MySQL http://dev.mysql.com/tech-resources/articles/intro-to-normalization.html Yes, but I already told you, I don't think you want to do that. Have a table with replies that links each reply to each article/form/blog w/e it is.
  9. Let's back up. I don't think you want to create a new column every time someone makes a reply. Your tables should be relational, meaning, you can relate each table in such a way to extract the specific information needed.
  10. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=331054.0
  11. Maq

    error

    'to' is a MySQL reserved word: http://dev.mysql.com/doc/refman/5.1/en/reserved-words.html If you can, change your column names, otherwise, you must put backtics around `to` every time it's used.
  12. This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=331050.0
  13. isset - Determine if a variable is set and is not NULL. if - If expression evaluates to TRUE, PHP will execute statement, and if it evaluates to FALSE - it'll ignore it. More detailed explanation in the manual links above.
  14. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=330871.0
  15. You haven't tried what I suggested, please turn on error reporting.
  16. In the future, please use tags around your code.
  17. Temporarily turn on error reporting. Put these 2 lines directly following your opening <?php tag: ini_set ("display_errors", "1"); error_reporting(E_ALL);
  18. I'm not downloading your code, post the relevant part(s).
  19. This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=330841.0
  20. You should be doing this in the SQL using - http://dev.mysql.com/doc/refman/5.0/en/group-by-functions.html#function_sum Moving to MySQL section.
  21. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=330840.0
  22. In the future, please use tags around your code.
  23. You can use trim. If you want to do something else, then provide a more detailed explanation and/or examples.
  24. Post the relevant code with the corresponding issue and we will help.
×
×
  • 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.