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
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...
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...
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...
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 %...
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...
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 <...
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...
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...
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...
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
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...
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
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
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.