Jump to content

All Activity

This stream auto-updates     

  1. Yesterday
  2. How can I vertically align to top?

    Vertical-align only applies to inline elements, inline-blocks and table cells. If you want the "1" further up, try reducing the line-height.
  3. How can I vertically align to top?

    Hi, <div class="field field-name-field-step-no field-type-text field-label-hidden"> <div class="field-items"><div class="field-item even">1</div></div></div> .field-name-field-step-no { font-weight: bold; font-size: 46px; padding: 0; vertical-align: top; } https://drive.google.com/open?id=0B7xIEuVi005ydnFBUVJmY2hQRFk I still see some on top of the element. How can I vertically align to top?
  4. form validation

    I thought this worked ,it doesn/'t hash the pass, It puts the hash in the data base but it fires prematurely it causes the input field to be fill before the user input is served . just need to keep pounding .hopefully ill get a break through, trial an error unfortunately mostly error
  5. Last week
  6. I need to replace textarea for text in a "Copy to Clipboard" script

    Thanks for the ideas! It sounds very promising.
  7. SELECT JOIN - A Failed Query

    Yeah, I wouldn't think that the aliases would expand over the union because each of those select queries stands alone.
  8. Web Standard X11 (Primary Digital Named Colors)

    I just don't agree with that. Color names are over-rated in a global world. Instead of trying to figure out what someone means when they tell me they want the background to be dunkelgelb, they could just tell me to use #938200 or whatever the specific value is. Mathematics is the only universal language we have. Trying to tack on words in various languages that everyone doesn't even speak or understand as a replacement for a concise definition is not progression, it is regression.
  9. The easiest solution would be to set the textarea to readonly by giving it a readonly attribute. You can style it to not look like a text area by giving it a transparent background and no border. If you actually want to copy text from an element that's not a textarea I would actually have to do some tests to see what the browsers do and don't allow.
  10. Template examples / h3 classes not centered on iPad

    I can't tell for sure why that's happening just from the screenshot, I would need to actually see the image and code, or the page itself, in order to be sure. If that is a background image which is not extending to the full width of the element then it means the image is not large enough, you can set the background-size to "100% auto" (100% wide and height adjusts based on the image's aspect ratio) or center the image if you prefer. If the background image is large enough and is actually reaching the full size of the container then that means something is getting outside of the container and you would need to find out why.
  11. Web Standard X11 (Primary Digital Named Colors)

    I am not entirely sure what exactly you're trying to argue for. You bring up the fact that we have billions of colors but still seem to want to use names to select them. No matter how many human-readable names you give to these colors the set of named colors will only ever be a minuscule subset of all the colors that are available. The only way to have full color freedom is by referring to them through numbers. Named colors, while good for communication between humans, are not good at all for actually identifying colors. When you tell somebody "blue" it does not say anything about exactly which shade of blue you're referring to. If somebody asks you to make their website blue, which color are you going to use? Blue Blue Blue Blue Blue When people are selecting a color for paint or a light bulb, somebody has to provide them with a sheet showing all the available colors and allowing them to pick one, or in online businesses you present them with a color picker. The color they end up selecting will most likely not have a specific name but rather an identifier and on the web, that identifier is almost always a color code in RGB format. I'll repeat that X11 is not a web standard, it is merely mentioned in a W3C document ( https://www.w3.org/TR/2002/WD-css3-color-20020418/#x11-color ). The document shows a list of X11 color names that are supported by popular browsers at the time of writing, but the specification neither requires the browsers to support them nor guarantees that this support will continue in the future. Again, it's not really clear exactly what you're asking for, could you summarize your idea in one sentence?
  12. JMRKER was kind enough to improvise this solution below. However, although I need to have information (text) copied to the clipboard, I need NOT to have it in a textarea. It shouldn't be available for modification. Isn't there a way to keep this text data in the code, and then transferring it to the clipboard when a button is clicked? Thanks guys <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <title> HTML5 page </title> <!-- From: https://stackoverflow.com/questions/6300213/copy-selected-text-to-the-clipboard-without-using-flash-must-be-cross-browser --> <style> </style> </head> <body> <textarea id="textarea" rows="6" cols="40"> Lorem ipsum dolor sit amet, eamsemper maiestatis no. </textarea><br/> <button id="copyTAreaBlock">Click to copy</button> <span id="copyTAreaAnswer"></span> <p> <input type="text" id="textInput"><br/> <button id="copyText">Click to copy</button> <span id="copyTextAnswer"></span> <script> // Setup the variables for TEXTAREA var textarea = document.getElementById("textarea"); var answer = document.getElementById("copyTAreaAnswer"); var copyTArea = document.getElementById("copyTAreaBlock"); copyTArea.addEventListener('click', function(e) { // Select some text (you could also create a range) textarea.select(); // Use try & catch for unsupported browser try { // The important part (copy selected text) var ok = document.execCommand('copy'); if (ok) answer.innerHTML = 'Copied!'; else answer.innerHTML = 'Unable to copy!'; } catch (err) { answer.innerHTML = 'Unsupported Browser!'; } }); </script> </body> </html>
  13. change column names of a table

    ok thanks for helping me out
  14. change column names of a table

    Use ALTER, its described here https://dba.stackexchange.com/questions/62051/alter-table-rename-a-column
  15. change column names of a table

    My question is, if it is possible, to change the name of the column with MYSQL. (not with php) This is my example: mysql> select * from horses; +------------+---------------+-----------------------+---------------------+---------------------+-----------------------------+ | num | name | location | created_day | changed_day | key_value | +------------+---------------+-----------------------+---------------------+---------------------+-----------------------------+ | 1 | Horse Riding | http://www.camping.fr | 2017-03-30 13:40:16 | 2017-10-19 18:14:57 | Horse, Riding, Woods | | 2 | Horseriding77 | http://www.wine.com | 2017-10-27 10:16:59 | 2017-10-27 10:16:59 | Outdoor, Vacances, Test | | 3 | Horsetours45 | http://www.fake.com | 2017-10-23 16:18:17 | 2017-10-23 16:18:17 | Outdoor, Vacances, Test | | 4 | Horsetours57 | http://www.bing.com | 2017-10-23 17:24:32 | 2017-10-23 17:24:32 | Outdoor, Vacances, Test | | 5 | Horseriding48 | http://www.test.com | 2017-10-25 09:05:18 | 2017-10-25 09:05:18 | Outdoor, Vacances, Test | | 6 | Horseriding67 | http://www.google.uk | 2017-10-27 10:11:18 | 2017-10-27 10:11:18 | Outdoor, Vacances, Test | | 7 | Horseriding52 | http://www.google.es | 2017-10-26 17:00:05 | 2017-10-26 17:00:05 | Outdoor, Vacances, Test | | 8 | Horseriding57 | http://www.google.fr | 2017-10-27 12:13:38 | 2017-10-27 12:13:38 | Outdoor, Vacances, Test | +------------+---------------+-----------------------+---------------------+---------------------+-----------------------------+ 8 rows in set (0.03 sec) mysql> the idea is that for example location as a column name is changed by mysql into other names.
  16. loop input for each string

    IF you don't have a predefined number of inputs to fill. You need to on each loop create a input type text, and give each a attribute name and maybe id, that will use the index parameter to give different unique values for each, then append, insert onto page.
  17. loop input for each string

    I want, to remove the comma and space, and after get one by one the value and set it to an input Text, eg: A, B, C, D so I split this string and it in input Text.
  18. Web Standard X11 (Primary Digital Named Colors)

    Wrong link above . Should be: http://www.workwithcolor.com/color-chart-full-01.htm Compare: https://www.w3schools.com/colors/colors_names.asp Has W3 Schools any access to a 'color name' dependent corporation or entity? Code is easier to find than color names, on Internet search engines.
  19. What does this code do?

    $_GET is a called a superglobal in PHP. It is a wrapper for one to many variables sent via an HTTP request. HTTP REQUEST: http://www.grammarcaptive.com?hash=30a6836a3f7c5fc57751a61098e5c221&podcast_no=21 URL Without a Query String: http://www.grammarcaptive.com Query String: ? + hash=30a6836a3f7c5fc57751a61098e5c221 + & + podcast_no=21 The string literal '30a6836a3f7c5fc57751a61098e5c221' becomes the value of $_GET['hash'] The number 21 becomes the value of $_GET['podcast_no']
  20. SELECT JOIN - A Failed Query

    It turns out that the aliases must be repeated for each SELECT and JOIN statement, but it makes no difference whether they are the same or different for each SELECT and JOIN statement. Roddy
  21. form validation

    thank you for your expert advise. I managed to convert the password into the options array prior to inserting in to db using this code. It works!!!YA.THANK YOU //password if (empty($_POST["password"])) { $passwordErr = "password word is required"; } else { $password = test_input($_POST["password"]); //changed the regular expression you can add up to 60 charecters if (!preg_match("/^(?=[-_a-zA-Z0-9]*?[A-Z])(?=[-_a-zA-Z0-9]*?[a-z])(?=[-_a-zA-Z0-9]*?[0-9])\S{0,60}/",$password)) { $password_Err = "<br><P>Password must be a mixure of no# and letters containing upper & lower case charecters</P>"; } } // changed the name of password to password_hash call the $options array this is coverting the password prior to getting to db it works $options = [ 'cost' => 9, 'salt' => mcrypt_create_iv(22, MCRYPT_DEV_URANDOM), ]; $password = password_hash($password, PASSWORD_BCRYPT, array( '$options' ));
  22. Sticky and Responsive Top Navigation

    Hi Everyone, First of all, w3Schools is an incredible resource. I was able to find code for Sticky Top Navigation and Responsive Top Navigation. Sticky Top Navigation https://www.w3schools.com/howto/howto_js_navbar_sticky.asp Responsive Top Navigation https://www.w3schools.com/howto/howto_js_topnav_responsive.asp But what I really want is both. Is it possible? Also, I don't know if this is wise, but I'm trying to W3.CSS (which I just discovered) but I settle for anything that works. On a related note, in CSS, what do some styles use "." and some use "#"? Many thanks in advance for any help you can give me?
  23. Web Standard X11 (Primary Digital Named Colors)

    I think that this discussion is about CSS. Maybe, just maybe... Dodger Blue is not the only lonely kid on the block. How may divisions in MLB? Not to mention NHL. What am I missing out on? Jung Liu, "We have way more color names than you. But you just would not understand." Do any of us "understand"? X11 Color Names (only 145 of those listed by W3), Profiles (color), color keywords (above, I query adding other names to the established pattern), transparent and currentcolor keywords, simple SVG alpha compositing (for justsomeguy, what are 'excludes'?), extended color names (what are increments), color name validity... [Google results page 1, 6 of 645 results. I understand the human contact part of color names, that preceded by at least 4.8 million years anything discussed herein, and will certainly outlive us all. Contact says color names are a useful communication tool, where development meets world outside. Light bulbs and transit respond to "BLUE", not (000,000,255:100). How about you? Do you know what is "BLUE"? .blue { color: #0000FF; color: blue }... CSS [hex included to remove potential ambiguity - ink/paint/photography/other product manufactures engage nominal naming conventions predating and aligning with current digital color names - assuming culture allows nascent digital product greater access (see above, Color Chart One-Page View] HTML [method open to interpretation]
  24. Web Standard X11 (Primary Digital Named Colors)

    So, the hidden self in every developer is a digital artist, with a 16.77 million color palette! Unless his display offers 1.2 billion colors, demanding 32-bit palette, and then 64 bit palette (current Adobe research)... and so on. In fact 1,2 billion colors in a 24-bit market is a bit of a conundrum, concerning differences in displays and printers. Higher color depth devices can detect lower color depth device variation, such that no two Galaxy or iPhone units are the same. True, this frustrates us all in to buying bigger and better. But take a more traditional perspective: French artist Rousseau observed (like DaVinci) that no matter how oils mixed, the primary colors engaged never changed. That is why I began this thread discussing "primary increments". In fact, those increments (HSL isolation, RYB spectrum and so on) are why some think color names serve a purpose in digital development that goes beyond mere market toy. Color names in code anchor literally thousands (and for Professor Leaky) millions of years of our human language. The act of providing 1.2 billion colors on my display affords us all respect, not just a smidgeon of cultural color names (Dodger Blue? LOL!)... and enables far more tangible cognitive and behavioral association with related development frameworks. Far more than merely frustrating, color names firmly secure digital development in the human experience. Do not overlook that your grandfather most likely was born before anything "digital" came into existence. Would you rather remain isolated, 100% misunderstood. Color names have a long way to go. They are moving ALL DEVELOPERS into far more than speech recognition INSIDE Apple light bulbs, Tokyo/Singapore LRT Transit maps/tickets/programming and... [carry on] CLICK! Color me blue, Siri, where's my CSS Color Name file (like the ones recognized by Sublime Text, Atom and Dreamweaver... [carry on]?
  25. SELECT JOIN - A Failed Query

    ALMOST THERE? There is an improvement, but i am still not there as the procedure returns NULL for the field userbio. (SELECT p.id, p.usertype, p.username, c.userbio FROM parent_table AS p LEFT OUTER JOIN child_table AS c ON c.id = p.id WHERE p.id = 10) UNION (SELECT pu.id, pu.usertype, pu.username, cu.userbio FROM parent_table AS pu LEFT OUTER JOIN child_table AS cu ON cu.id = pu.id WHERE pu.id IN (SELECT ref FROM ref_table WHERE ref_table.id = 10) ) Output id usertype username userbio 10 3 david NULL 4 3 tim NULL 6 1 liz NULL Never mind. It works. For some reason the listed data was never entered into the child_table. Alas, I am a happy dummy! Roddy
  26. form validation

    You hash the password prior to inserting in the database, but you add it to the database like any other value. You wouldn't insert the plain text password from $_POST, you hash that password, get the hashed value, and then insert that hashed value into the database. I would recommend that you learn how to use PDO for the database work though. You need to use prepared statements when you're putting data in a query, and PDO is just easier and less complex for prepared statements than mysqli. http://php.net/manual/en/pdo.prepare.php http://php.net/manual/en/pdostatement.execute.php
  27. form validation

    I read your article that you put up a while back on form page mode very helpful and in depth in fact if I would have discovered sooner I wouldn't have post this I know im just printing the hash out on the page .I Relies that it needs to be defined in the insert statement .what im trying to learn is how to put it in the insert statement so that hashing of the password is accomplished in db . as far as the specialchars i never used them before i 'm trying to learn security . here is my insert file <?php $servername = ""; $username = ""; $password = ""; $dbname = ""; // Create connection $conn = new mysqli($servername, $username, $password, $dbname); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); //____________________________________________ //trying to understand how to put this in the statement }else{ $options = [ 'cost' => 9, 'salt' => mcrypt_create_iv(22, MCRYPT_DEV_URANDOM), ]; $password = password_hash( "password" ,PASSWORD_BCRYPT, $options); //_______________________________________ $sql = "INSERT INTO users (username, password,email,website,comment,gender) VALUES ('$_POST[username]', '$_POST[password]', '$_POST[email]', '$_POST[website]', '$_POST[comment]', '$_POST[gender]')"; if ($conn->query($sql) === TRUE) { echo "New record created successfully, <a href = ''>Click here to continue</a>"; } else { echo "Error: " . $sql . "<br>" . $conn->error; } } $conn->close();
  1. Load more activity