Jump to content

Lukela

Members
  • Posts

    55
  • Joined

  • Last visited

    Never

Posts posted by Lukela

  1. Haha, see... someone already tried to screw me over and input a SQL injection. We'll to let you know... this is a free server, and nothing valuable is on here.

     

    :) Have a Good Day and REMEMBER TO DO A SURVEY!

  2. Hey everyone!

     

    I need your help with something which I believe that PHPfreaks Forums is the perfect place to get it from. Anyways my class (Business Academy) are doing this Marketing Plan, so for one of our assignments we need a survey based on the business you are marketing, asking questions related to the customers you are targeting. So if ANYONE who can help me out and fill out a 8 question survey, go to this link.

     

    http://6figurepurls.wsnw.net/Purl/survey.php

  3. Heh,

     

    Im wayyyy better in PHP than Mattthhh!!!!! Just joking, I am better in math than PHP though.

     

    PHP is just a for fun thing for me to do, just to not worry about things in the real world and just drift away on this raft until I get flipped over and end up on my desk of homework.

  4. This is what I am trying to do:

     

    Im building this Stock Market feature for this game I am creating, although I am stuck on this ONE feature which can help me complete this game. I need to know how to draw a Line Graph with PHP!!!! This Linegraph will consist of Days on the X-axis and the new value of the stock on the Y-Axis.

     

    Im using a cron to update the information each day.

     

    Anyone know how to draw a Linegraph? Or knows any good sources?

  5. Here's my situation, Im building a Browser-based game. In this games you have these troops that you are able to attack people's villages and such, when you attack someone you need to take the time difference between them two and that will be how long it takes to reach the target. I can use PHP to calculate the time, but I need a JS script that once the time hits 00:00:00 it would run the attack script to calculate the battle. Anyone here can help?

  6. How am I suppose to run the script when the timer reaches to 0? PHP cant do that, I also want people be able to browse the website. So the SESSION cant reload on its on, so thats why I need JS. Although I dont know any JS, -picks up book- anyone wanna save me the time? Im going to start learning JS though but I need the code asap

     

     

     

    no, but I know what you mean now. I make Text Browser games myself. *looks at signature*

     

    I'm guessing you have a "attack" table in your database or something like that, which has "attacking user id", "defending user id" and the rest of it... what you need is another column in the attack table and name it something like "ETA"(estimated time of arrival) and.... I'm running low on ideas now... could do a cronjob to run every 5 mins or something to update the ETA column. but this will take away the accuracy of the ETA. Really depends on how long the estimated time of arrival, or attack is, like would you measure the time in hours, mins, secs or days??

     

    EDIT: sorry just saw what you posted above...

    Is someone able to browse other pages while this is happening? Cause the attack can take hours, days, or minutes

     

    Regards ACE

    Set a session variable for the expiration time, and one to say you're attacking. On page load of the attack script, check the session variable to see if its <= the current time AND that the one that says you're attacking is set. If both of those things are true, UNSET those variables and proceed with your attack script.

    Simple. :)

    As for displaying how long, basically:

    $time_to_go = $_SESSION['expire_time'] - time();

  7. I have this Browser-based game I am building with PHP and very basic Javascripts(cause I do not know). So when someone attacks, there is a time difference on how long it takes till there troops reach there target. That will be the timer, so when the timer hits 0 it will comense the attack script.

  8. Well this is just a statement, I am 16 years old and attending Junior in High School. I've been doing PHP for about a year, and its sooo help for me that I created a script to do my math homework for me and I am no longer failing in the homework section of math anymore. I just wanted to say this because.... its just funny for me lolx.

     

    I think I can consider myself advance in PHP already for I created functions so dynamic and such... its just scary for me being young and doing it =) I say I spend about 2-4 hours a day working on PHP and a few sites, building a Browser-Based game with PHP and I am about to launch it within a month. Its my first and its pretty cool although, well for me lolx. Also I made about $1000 with PHP for creating this SEO Optimizer and sold the tool to this guy for $500 and the same guy bought it 2 months later for the same price. So now he said if I wanna work for him, create more SEO Optimizers and he'll pay me for each one. I build Redirectional URL's(PURLS)

     

    NO MORE MATH HOMEWORK, WOOOHOOOO

     

     

  9. Truthfully, I think you should redesign the database so later on in the future you dont have to worry about it.

     

    Have a table for items, users, and shopping_cart.

     

    Than give them id's so items_id, users_id.

     

    In the shopping_cart table you will have AT least these columns which will be users_id and items_id. These will be the items they have in the cart. Simple as that. :)

  10. Im creating this Tool to generate from 1 to 50 emails random email addresses. Many Marketers create new emails for new Craigslist account each day because there ads will stick better. So I am going to create this email generator which you can check and grab the verification code to activate your new craigslist account. Each email has 45 days from the time its created before its deleted.

×
×
  • Create New...

Important Information

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.