Jump to content

jazzman1

Staff Alumni
  • Posts

    2,713
  • Joined

  • Last visited

  • Days Won

    12

Everything posted by jazzman1

  1. Well, it doesn't work b/s you use a div html element with id: usernameLength, not input element with id:usernameLength.
  2. Well, I've tested into my local server and the example #1 and #3 works just fine. How did you test it?
  3. So, you're right. I've made a simple test: Working <script src="http://code.jquery.com/jquery-latest.js"></script> <script type="text/javascript"> $(function(){ var value = $("#usernameLength").val().length; console.log(value); }); </script> <input type="text" id="usernameLength" value="" /> Not working: <script src="http://code.jquery.com/jquery-latest.js"></script> <script type="text/javascript"> $(function(){ var value = $("#usernameLength input").val().length; console.log(value); }); </script> <input type="text" id="usernameLength" value="" /> EDIT: If you want to use an input selector, it should be something like this: http://api.jquery.com/input-selector/ <script src="http://code.jquery.com/jquery-latest.js"></script> <script type="text/javascript"> $(function(){ var value = $(":input#usernameLength").val().length; console.log(value); }); </script> <input type="text" id="usernameLength" value="" />
  4. I think to get the "length" of particular DOM element in jQuery, you need to type something like that: To be sure, check in jquery web site. $("#usernameLength").length
  5. Is it jquery API code? You need to include a source code of that library.
  6. Fatal error: ? What's your updated Database class?
  7. You have numRows() method not numRows. if ($db->numRows == 0)
  8. For homework - http://souptonuts.sourceforge.net/quota_tutorial.html
  9. Did you try to increase --read_rnd_buffer_size? According the manual, the maximum permissible setting is 2GB. You can check the current one: SHOW VARIABLES LIKE '%read_rnd_buffer_size%'
  10. @lingo5, if you have a simple link on your web page, you could use .htaccess for that purpose . Examples: <a href="products">Products</a> RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^(.*)$ $1.php If you want to hide a php extension in the url string, I'm not sure that can't be done purely via .htaccess, you should use php to do this, or better JS.
  11. Beeeeney's solutions are correct! Where did you stuck?
  12. I don't very familiar with .htaccess, so let me check Beeeeney's solution into my local server.
  13. It must start with period. Example: .htaccess
  14. Be sure that your htaccess file is hidden.
  15. Your regex is'n correct. Check in the web for a regex mail validation .
  16. After you turned it off, did you restart the web server?
  17. No, it's not only the web issue! How do you resize the file system in a low level with php, еspecially linux one?
  18. Well, to be clear I don't think that it's a web server issue, I think that OP wants to re-size a storage space on the server for every client, which has a home directory on the server.
  19. @cpd, it's a server side storage issue, no database one. @OP, what OS is running on the server?
  20. Yep, b/s you need to delete old cookies in FF and try to connect again
  21. Let me see your updated config file, please.
  22. If he's using a linux machine as home computer, I'm going to write him down a simple bash script that lists out all files in that particular directory. EDIT: I'm pretty sure that that file doesn't exist or it contains different characters.
  23. Are you using a linux server as a home one or ..... ?
  24. If you are trying to log in as root, you should have the line "$cfg['Servers'][$i]['AllowNoPassword'] = false; " to be TRUE in your config. Otherwise they should be: $cfg['Servers'][$i]['AllowNoPassword'] = false; $cfg['Servers'][$i]['user'] = ''; //mysql username here $cfg['Servers'][$i]['password'] = ''; //mysql password here EDIT: Don't forget to restart the database!
  25. @jeger003, try to increase read_rnd_buffer_size. http://dev.mysql.com...parameters.html http://dev.mysql.com...rnd_buffer_size Also, run this piece of code into the mysql terminal and give us the result back: EXPLAIN EXTENDED SELECT label,COUNT(ObjectKey) AS labelcount FROM db.results GROUP BY label ORDER BY labelcount DESC LIMIT 30\G After then: SHOW WARNINGS\G
×
×
  • 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.