Jump to content

gw1500se

Members
  • Posts

    1,041
  • Joined

  • Last visited

  • Days Won

    17

Everything posted by gw1500se

  1. Sounds like a syntax issue. Post your code.
  2. For that you would need to use a database (e.g. MySQL).
  3. Don't use $_REQUEST. It has been deprecated. Use $_POST or $_GET depending on your form, which you did not post. Be sure to turn on error reporting. You don't do any error checking of your database query either.
  4. It is not clear what you want displayed in that cell. Post the code you tried and tell us what is not working or what error you get.
  5. Not sure I understand the question but it sounds like you need to use JavaScript/Ajax on the new page. That code would itself be static but the result would be dynamic.
  6. Passwords should be stored securely in a database (MySQL).
  7. Reading the manual is a good place to start.
  8. Post the actual code and the actual error message. Be sure to use the code icon (<>) in the top menu and specify PHP.
  9. Remove the error suppression character (@) and post the actual error.
  10. Why the restriction of subtraction only up to V? How would you process MCM?
  11. You are probably not getting any reply because you did not post your code here. Few people will go to a 3rd party web site to see your code and ever fewer will download zipped code. Post you code here using the code icon (<>) on the to menu and specify PHP. You will be more likely to get a response.
  12. Don't post images. Post your actual code using the code icon (<>) on the top menu then select PHP. Also enable error reporting and post any errors. error_reporting(E_ALL);
  13. Not sure if this will work for you but I found this regex for validating Roman numerals: ^M{0,3}(CM|CD|D?C{0,3})(XC|XL|L?X{0,3})(IX|IV|V?I{0,3})$
  14. I'm not sure but the only way I think that can be accomplished is with the Zend Frame work and 'zend_measure_number'.
  15. Sorry. I misread your OP and got it backwards. How about this?
  16. Search engines are your friend. https://www.hashbangcode.com/article/php-function-turn-integer-roman-numerals
  17. if(!isset($_SESSION['user']) || $_SESSION['user'] !== 'SiteOwner') { exit; }
  18. <a href="\"index.php?id=".<?php echo $data['id']; ?>."\">"
  19. Nope. A<B is true if A is less than B and A>B is true if A is greater than B.
  20. It would be helpful if you post the HTML form. I suspect by fixing your form the looping can be made easier.
  21. It is possible to have an MD5 collision however it is remote. Something like 1:2^64/2. It is not possible to have the same SHA-1 sum too. If you get a matching MD5 hash then calculate the SHA-1 sum to see if they are the same as well. Then you would be safe rejecting the file if it is that critical.
  22. The first 'isset' in the if is unnecessary. That will always be set to something. Did you 'echo' the other parameters to be sure they contain what you expect? Do you have errors turned on? error_reporting(E_ALL);
  23. The path is relative to your document root and cannot go outside. If your absolute path is outside of document root then you need to check permissions. That path must give read permission to whatever user is running httpd. Which is likely different than the user doing the development which may have r/w permissions.
  24. Poor programing practice. The funtion should be: function clean_names($dirty_name) { $clean_name = strip_tags($dirty_name); $clean_name = str_replace(' ', '', $clean_name); $clean_name = ucfirst(strtolower($clean_name)); return $clean_name; }
  25. How do yo know it is not going through that function, since it returns nothing?
×
×
  • 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.