Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by JohnnyT

  1. JohnnyT

    Can someone help me find the error in this query?

    Thanks for your advice. I've managed to work out what the problem was and you were right. There was occasions when user_ID wasn't set. Thanks again ;-) Spend a few minutes remembering your loved ones, Create a permanent memorial to commemorate their life, http://www.friendsatrest.com
  2. JohnnyT

    Can someone help me find the error in this query?

    Hi all, I'm by no means an expert in SQL and have a query that's causing an error in my logs. The error is: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND user_gifts.status = 1 AND gifts.ID != 26 AND...
  3. JohnnyT

    (Beginner) Form label variable help

    Found it, thanks. No idea what it does yet.. but found it! ;-) Will continue to delve and see what else I can find out. Your example is a LOT more elegant than my effort and it has given me a lot of food for thought. Thanks for all your work. ;-) Spend a few minutes remembering your loved...
  4. JohnnyT

    (Beginner) Form label variable help

    PGO01, Ahhh... I think I need to do some reading on protected internal constructors. Why does your Card class also have : Control ? I can't see a Control class that it inherits from and I can't see a Control interface that it could implement? Is Control a class or interface that is embedded...
  5. JohnnyT

    (Beginner) Form label variable help

    PGO01, Wow! I've been trying to get my head around your code but it is still a bit above me. Could you briefly explain the Card constructors to me. // Constructors not public as we only want creation through a Deck. protected internal Card(int value) : this(value, (CardSuit)(value %...
  6. JohnnyT

    (Beginner) Form label variable help

    mstrmage1768, That is exactly what I was after! Thank you so much for that. jmeckley, thanks for you answer. I've just been learning about lists but didn't think of using one for this. Many thanks. Thanks for everyones help ;-) Spend a few minutes remembering your loved ones, Create a...
  7. JohnnyT

    (Beginner) Form label variable help

    Hi Kss444 Thanks for the links. I don't need to loop through every control on my form, just the labels. Basically I want to set the labels .text property to show the card that the player holds. If I have 4 labels called PlayerCard1, PlayerCard2 etc. I would like something like: for(i=0; i <...
  8. JohnnyT

    (Beginner) Form label variable help

    Hi all, I'm new to C# but I'm really enjoying learning it. I've just started a little exercise to try and make a BlackJack simulator. Using 'Lists' to hold the cards etc. My form shows the possible 5 cards that the Player can hold as Labels (PlayerCard1, PlayerCard2, PlayerCard3 etc). I want...
  9. JohnnyT

    Is it best to require a large file or more calls to fewer files?

    jpadie I agree with your comments about feherkes post being good first stage protection. I was thinking along the lines of using the page address eg. if someone visits: www.mypage.com/pictures.php Then pictures.php would run the script to "include" myFunctions/pictures.php ie. I would make...
  10. JohnnyT

    Is it best to require a large file or more calls to fewer files?

    I wouldn't use GET anyway. I think it is too insecure. People can pass anything into your script that way. I think I'd be inclined to do some manipulation of the SERVER vars and find the page requested that way.. Still... some good info in this thread. Thanks ;-) Spend a few minutes...
  11. JohnnyT

    Is it best to require a large file or more calls to fewer files?

    Thanks for clearing that up for me. Much appreciated ;-) Spend a few minutes remembering your loved ones, Create a permanent memorial to commemorate their life, http://www.friendsatrest.com
  12. JohnnyT

    Is it best to require a large file or more calls to fewer files?

    QUOTE GET variables come from the query string. they are superglobals. /QUOTE Hi jpadie, I understand that there are GET and POST vars but I wondered what $_GET['l'] is 'getting'... Is it getting the first element of the GET var or is it a literal in this sense. ie. Are we passing a page like...
  13. JohnnyT

    Is it best to require a large file or more calls to fewer files?

    I like the idea of that... Where's the: $_GET['1'] coming from? Are you deriving it from $_SERVER['REQUEST_URI'] or something like that??? Thanks ;-) Spend a few minutes remembering your loved ones, Create a permanent memorial to commemorate their life, http://www.friendsatrest.com
  14. JohnnyT

    Is it best to require a large file or more calls to fewer files?

    Point duly noted. Thank you for your help. ;-) Spend a few minutes remembering your loved ones, Create a permanent memorial to commemorate their life, http://www.friendsatrest.com
  15. JohnnyT

    Is it best to require a large file or more calls to fewer files?

    Thanks for that jpadie. This is just a personal site but I do like to keep things as 'tidy' as possible for my own peace of mind. ;-) Spend a few minutes remembering your loved ones, Create a permanent memorial to commemorate their life, http://www.friendsatrest.com

Part and Inventory Search

Back
Top