int numToConvert;
String rez = "";
while(numToConv ert > 0)
{
rez = (numToConvert%2 ) + rez;
numToConvert = (int)(numToConv ert/2);
}
//turn rez into an int, and there you go
User Profile
Collapse
-
thanks man. however, i am not sure if we are both pounding on the same problem here. what i am trying to contribute to is luke_noob's problem about passing variables without a form. I strugled with that question, too, and I was answered yesterday by a moderator nicknamed Atli. So, I think I got it good this time.
I would not like to take up your time trying to teach you (a moderator) what you already know. However, I would like to add the...Leave a comment:
-
yeah... I c that I forgot the dollar sign. so my actual suggestion is that you put in '$photoId'Leave a comment:
-
thanks Atli. I think that makes sense to me. I needed a confirmation of what I was already suspecting to be the case and you did offer the confirmation for me. I guess for now I should just look at the question mark in the href attribute as a short version of setting up a form, defining an action script, and determening the method (the $get versus $post)... which I guess is always a $_get...
That does i for me just fine. thank you again....Leave a comment:
-
some explanation please
Code:while($row = mysql_fetch_object($result)) { ?> <li><font size="-1"><b> <a href="story.php?id=<? echo $row->id; ?>"><? echo $row->slug; ?></a> </b></font> <br> <font size="-2"><? echo formatDate($row->timestamp); ?></font>
-
your [id]
i am a newbie myself, and am struggling with the exact same problem... so i thought i might offer some insight: ae you sure that your SQL statement of WHERE has the proper value. What I see you have is:
WHERE photoId = '" . $photoId . "
Try maybe:
"...... WHERE photold= 'photoId' ...." Note that I am specifically suggesting you take out the periods and double quotes.Leave a comment:
No activity results to display
Show More
Leave a comment: