jazzman1
Staff Alumni-
Posts
2,713 -
Joined
-
Last visited
-
Days Won
12
Everything posted by jazzman1
-
Well, it doesn't work b/s you use a div html element with id: usernameLength, not input element with id:usernameLength.
-
Well, I've tested into my local server and the example #1 and #3 works just fine. How did you test it?
-
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="" />
-
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
-
Is it jquery API code? You need to include a source code of that library.
-
Fatal error: ? What's your updated Database class?
-
You have numRows() method not numRows. if ($db->numRows == 0)
-
For homework - http://souptonuts.sourceforge.net/quota_tutorial.html
-
fine tuning MySQL server configuration for better performance
jazzman1 replied to jeger003's topic in MySQL Help
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%' -
@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.
-
Beeeeney's solutions are correct! Where did you stuck?
-
I don't very familiar with .htaccess, so let me check Beeeeney's solution into my local server.
-
It must start with period. Example: .htaccess
-
Be sure that your htaccess file is hidden.
-
Your regex is'n correct. Check in the web for a regex mail validation .
- 6 replies
-
- php mail
- contact form
-
(and 2 more)
Tagged with:
-
After you turned it off, did you restart the web server?
-
No, it's not only the web issue! How do you resize the file system in a low level with php, еspecially linux one?
-
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.
-
@cpd, it's a server side storage issue, no database one. @OP, what OS is running on the server?
-
Yep, b/s you need to delete old cookies in FF and try to connect again
-
Let me see your updated config file, please.
-
Why does a file work in one folder but not another
jazzman1 replied to mdmartiny's topic in PHP Coding Help
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. -
Why does a file work in one folder but not another
jazzman1 replied to mdmartiny's topic in PHP Coding Help
Are you using a linux server as a home one or ..... ? -
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!
-
fine tuning MySQL server configuration for better performance
jazzman1 replied to jeger003's topic in MySQL Help
@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