Search Results

Showing results 1 to 14 of 14
Search took 0.01 seconds.
Search: Posts Made By: mike_g
Forum: PHP Dec 23rd, 2008
Replies: 5
Views: 512
Posted By mike_g
If I understand you right, then maybe a query like:
SELECT candidate FROM tablename WHERE team='$team'
Would pull a list/array of all candidates from a given team.

If I understand you wrong,...
Forum: C Dec 23rd, 2008
Replies: 2
Views: 317
Posted By mike_g
Like salem said, you would be better off with a decent compiler such as gcc. If its not a problem with your compiler, then I'd guess you are not linking the library properly. Its been a while, but I...
Forum: C Dec 23rd, 2008
Replies: 7
Views: 724
Posted By mike_g
You might want to take a look at strtok (http://www.cplusplus.com/reference/clibrary/cstring/strtok.html).
Forum: HTML and CSS Aug 22nd, 2008
Replies: 12
Views: 1,383
Posted By mike_g
Not quite. You just store an id indicating which stylesheet to load. When loading the page you would then check for the id in the cookie, and if the cookie does not exits use the default style. You...
Forum: HTML and CSS Aug 22nd, 2008
Replies: 3
Views: 1,124
Posted By mike_g
Apparently when using z-index you are meant to specify an absolute position, but it also works with a relative position. Maybe try:
#logo{
position: absolute;
width: 100%;
height: 80px;...
Forum: HTML and CSS Aug 22nd, 2008
Replies: 12
Views: 1,383
Posted By mike_g
Yes, but AFAIK it would require a little scripting. You could save the style in a cookie, then select a stylesheet based on the value when the page loads.
Forum: MySQL Aug 22nd, 2008
Replies: 5
Views: 6,272
Posted By mike_g
It seems that you are not increment the id maybe add an increment to your loop? IE:
$id=1;
$count = mysql_num_rows( mysql_query("SELECT image_id FROM imagetable") )
$data = mysql_query("SELECT *...
Forum: C Aug 22nd, 2008
Replies: 21
Views: 2,726
Posted By mike_g
Yes, but first you are going to have to learn how to read. You could practice with this (http://www.catb.org/~esr/faqs/smart-questions.html). Then learn how to converse with other people...
Forum: C Aug 22nd, 2008
Replies: 8
Views: 1,172
Posted By mike_g
Something like:
int card = 39;
char suit = (card / 10)+'A';
int rank = (card % 10)+1;
printf("suit: %c, rank: %d", suit, rank);


IMO the easiest way to do this would be to load the entire...
Forum: C Aug 22nd, 2008
Replies: 21
Views: 2,726
Posted By mike_g
Since the result is a float I still reckon the easiest way to go about it would be to use sprintf and parse the string, but the op dosent seem to be interested in that idea :/
Forum: C Aug 20th, 2008
Replies: 21
Views: 2,726
Posted By mike_g
Have you tried converting the result to a string yet? that should make a good first step.
Forum: Computer Science Aug 20th, 2008
Replies: 1
Views: 591
Posted By mike_g
You can connect to a database with any of those languages; not positive about vb.net, but I would expect so.

From your description it sounds as if youre developing a POS system, which is something...
Forum: C Aug 20th, 2008
Replies: 8
Views: 1,172
Posted By mike_g
You should be able to store the data for each card within an integer. You could then get the suit as card / 10 and you could get the rank as card % 10. I find this approach simplifies things a...
Forum: C Aug 20th, 2008
Replies: 21
Views: 2,726
Posted By mike_g
If I was doing this I think I would use sprintf to convert the numeric result to a string then parse the characters building the words from it:...
Showing results 1 to 14 of 14

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC