Jump to content
xisto Community

lonelym

Members
  • Content Count

    87
  • Joined

  • Last visited

Everything posted by lonelym

  1. lonelym

    Learn Html

    The reason for the <title> tag being inside the <head> tag is because the things inside the <head> tag are downloaded first, or something like that.
  2. I've been meaning to learn to write C this week, and I am wondering what site could help me. I have a compiler (DJGPP) and I think it works since my older brother has compiled his C files with it before.Is it better to learn C++ first rather than learn C?Is there a certain sub-forum for C / C++ language here?What site would you suggest that I learn from?
  3. If the SEALS have the motto: 'No guts, No glory'and the MARINES have the motto: 'No pain, No gain'then what does a Security guard have as a motto?Spoiler:
  4. Before I thought that most 'made-in-china' items were of average value, but I guess you opened my eyes. O_O
  5. Truthfully, having yellowish teeth doesn't mean that your teeth is dirty or not well kept. Our enamel (what is inside the teeth) is naturally colored yellow. Using some chemicals to turn your teeth whiter might hurt your teeth.~ Just saying ~
  6. I understand. The site is already uploaded to the internet. Can I change my host's max_connections? Or is it something that only they are allowed to set?
  7. Salt water helps keep your mouth clean. Cleaner mouth results to cleaner teeth.
  8. I uploaded my PHP game yesterday, and most of my friends tried it out. After a while, I tried to play as well but it said that mysql_connect() had too many connections already. Can anyone tell me how to increase the amount of connections or maybe the total amount of connections allowed?
  9. Oh. I guess it is hard. I'll try to find more things about it.
  10. I believe in God (Christian), but it seems that whether are different gods, it just turns out the same. gods asks us to give certain offerings, be morally upright, and to be basically good. Religion is hardest to explain because there is this little gap-filler called faith. Faith requires you to believe without doubt, making it even harder to understand.Anyways, I think religion is just there to explain things that science can't.
  11. Thank you very much! It helped me a lot.
  12. Thanks for letting me know. I'll look it up. If anyone could help out, it would be appreciated.
  13. Is there a function in PHP where I could get the user's IP address or something? I require this function because I plan on restricting a '1 account per IP address' rule on my site. Thanks.
  14. Well, that will surely get people to join the concert. If not for the music, then for the flash drive. Somehow, it sounds so wrong...
  15. I'm am making a PHP mySQL site about the game DotA. I have made a little bit of the game already, and if you want to check it out, go to my SITE. I need help from people. Yup. I have finally admitted it. I need help with all the images that need to be downloaded, then stored in the server and all that. Anyways, I posted this here because I wanted people to try it out, give suggestions, comments, opinions, or even help out. Hope you guys like it. (I'm not sure if this topic should be placed here. I thought that Warcraft 3 is a simulation of war, and so... Well... You get the point. o_o)
  16. Ah, I didn't know there was a Cron function in PHP. I'll try to find a place to learn about it. Thanks for the comment. ^^
  17. By the way, it isn't really updating everyday, it only updates when a user logs in to the site in a different day than the day found in the mySQL database.
  18. Easiest way might be using two different browsers, such as using Mozilla Firefox and Internet Explorer at the same time. Using two different accounts is helpful especially when transfering items, posting really really fast, and basically getting more from the daily chance.Have you seen the new layout? Its uber-great.
  19. Wow. I didn't know that there are some light that doesn't bounce off. Well, I guess I learned something today.
  20. So, I've been wondering for months how I would be able to let users' data in mySQL to update by themselves (Like letting HP return to its max value every day by itself, without me doing anything), and I have finally found a little trick on how to do it. Yes, its only a newbie-ish fourteen year old's attempt to make his coding easier. First, you need to create a table, let's call it table refresh. Table refresh is where we put all the times we refreshed the users' certain data. Next, you need to write this down in your config.php or dbCon.php or any page that is always INCLUDEd in every page. Remember, your web page must be connected to the database. $date = date("d");$month = date("m");$sql = "SELECT * FROM `refresh` WHERE `date` = '$date' AND `month` = '$month'";$result = mysql_query($sql);if (mysql_num_rows($result) == 0){$sql1 = "INSERT INTO `refresh` VALUES ('$date', '$month', '')";$result1 = mysql_query($sql1);$sql2 = 'UPDATE users SET `field` = `value`;';$result2 = mysql_query($sql2);if ($result2 && $result1){die( text );}}Okay, now to dissect each and line. The first line is just setting the variable $date to the date of when the dbCon/config.php was executed. The second line is the same, but its for the month type. The next line is a written SQL query (I don't like writting everything in one variable). The next is writing executing the query. Now we check if the executed query had any rows/data. NOTE! if there are any data, it will skip the if statement. Since there are no rows/data found for today. Then, it creates the new row/data for today. After that, it executes the query. Then you can write what you want to update in the table. You can add the die() function as well if you want to notify the person who executed the page about the edited variables. If anyone can give a better explanation (I know it was really confusing, I myself had troubles with it), feel free to post.
  21. I have found out the source of my error. The PHP script should be placed before any text, or else the headers will be sent, and the session functions will not work.
  22. Yes, the entertainment that you have serves it purpose properly, and it seems that you have control over yourself and you have discipline. Too bad for me though, I don't have both of them. Well said.
  23. Yes, if they already had a child, abortion seems to be the best solution for both the parents. What I understand from what you are saying is that we shouldn't do something about preventing it, because it's already happening. Instead, we should try to solve the problem that is already at hand, instead of preventing it. What I don't understand is the fact that the child is killed because of the irresponsible cases of pregnancy. The fact that the child growing in the mother's womb is a living being convinces me that killing it is wrong. I mean, what is the difference between murdering an adult to murdering a child? Wouldn't murdering a child be even worse? Yes, doing abortion would clearly help both the parents, both financially and in health, but since the parents made the mistake (irresponsible cases of pregnancy) shouldn't they take the consequences for their actions? Why should the child, born into this world take the consequence? I supposed it is a STD, but I hope not. Anyways... Do not think of it as a wrong choice of having them do abortion. I believe living is better than not living at all. And so, another question pops up in my mind. WHAT is the purpose of life? If life is filled with problems and questions that we need to solve, WHY do we even need to solve it? Why can't he just get on with it? (Just kill ourselves) We'll all die anyways. Is living really that worth it to endure and solve all the problems we will encounter? And so, once you find out the answers to that, come back to me. Once we know the answers, we'll know if Drea really is better off abortion-ed or if she is better living a hard life. Off topic: I walk around my school, watching children play, friends chat, and barkadas (groups of people) enjoy their time. I sit, alone, thinking about the purpose of life, and the questions I stated above. I wonder if they (students) even know why they live, and what their answers are to the questions above.
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | 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.