Jump to content

Jessica

Staff Alumni
  • Posts

    8,968
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by Jessica

  1. Do you want it to match where the first digit is 1, or any digit is 1?
  2. Has anyone ever used a custom color scheme with putty? I am trying to use Solarized, which I use for my Windows text editor, in Putty and vim. vim is working fine, but in Putty now everything is just the plain grey text, none of the other colors are being used. The background is the correct grey and the text is one of the greys in the scheme, but for example when I do ls -a, EVERYTHING is still grey. Is there a trick to getting it to use different colors for different things? https://github.com/brantb/solarized/tree/master/putty-colors-solarized the .reg file Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\****] "Colour0"="131,148,150" "Colour1"="147,161,161" "Colour2"="0,43,54" "Colour3"="7,54,66" "Colour4"="0,43,54" "Colour5"="238,232,213" "Colour6"="7,54,66" "Colour7"="0,43,54" "Colour8"="220,50,47" "Colour9"="203,75,22" "Colour10"="133,153,0" "Colour11"="88,110,117" "Colour12"="181,137,0" "Colour13"="101,123,131" "Colour14"="38,139,210" "Colour15"="131,148,150" "Colour16"="211,54,130" "Colour17"="108,113,196" "Colour18"="42,161,152" "Colour19"="147,161,161" "Colour20"="238,232,213" "Colour21"="253,246,227"
  3. next returns a string, not the array. What you should probably do is use array_keys and loop through that.
  4. Echo the query and run it in mysql or phpmyadmin. Is the query what you expect?
  5. Is the username in the database MORE than once? In addition: stripslashes is not sanitizing user input. You need to salt & hash the user's password.
  6. And thankfully, you can avoid people who would hire them by having reasonable market rates. HTML/CSS, $20-30 is a fair rate. For PHP/MySQL, it can easily go up to 40-60. How long have you been doing it professionally? I started at 15, then each year went up by 5 or 10, until I found a good market to work in and jumped from 60 to 100 for freelance. (I also don't particularly want a lot of freelance work, only projects I really want to do, so $100/hr is a good way to weed out projects.)
  7. http://us.php.net/manual/en/control-structures.foreach.php
  8. Call it a control structure, not a "loop type" and maybe say "used for iterating through an array".
  9. #4 I have never seen someone use that syntax, and there is little if anything in the manual that indicates how it can be used. Not beginner material. See Kevin's point above. #5 - solely not souly. #10 - see above. #13 - also not beginner material. #15 - maybe include the % not just the name. #16 - see 15 17 - I don't even understand what you're asking, and if I do understand it's not even a sensible question. 19 - equal 23&24 - not beginner material What would be useful is "find the error" questions (show code and ask to find lines with errors, without giving the PHP generated error), as well as "fix the error" (given a syntax error, fix the code). Include logical errors not just code errors.
  10. And how would that be useful to a beginner? Really, a question like this does more to prove you know about the details of the language than help a newbie reaffirm they have a grasp of the basics. I agree.
  11. So I think The Little Guy is trying to include control structures, since, well, his post says that.
  12. So, write that in code. Here's the pseudo code. lastID = NULL; while(looping through results){ if(lastID != currentID){ //It's a new class } //All your other code lastID = currentID; }
  13. Is a control structure a statement?
  14. It's not difficult for us to tell you how, it's just a bad idea.
  15. Read this please: http://forums.phpfreaks.com/index.php?topic=365029.msg1730174#msg1730174
  16. DID you read the code? It IS incredibly obvious. You need to change 2 lines, there's a few ways you could do it. If someone does it for you, you won't learn.
  17. If you post your table structure and describe what you're trying to do, we can help if you get stuck on your join. Good luck.
  18. Use a join then. This is easier than you're making it.
×
×
  • 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.