Jump to content

AviNahum

Members
  • Posts

    170
  • Joined

  • Last visited

About AviNahum

  • Birthday 09/05/1993

Contact Methods

  • Website URL
    http://avinahum.com

Profile Information

  • Gender
    Male

AviNahum's Achievements

Member

Member (2/5)

0

Reputation

  1. hello, i have an event reservation system. i need to make sure that every time someone is booking a new time, it's not overlap another reservation. for example lets say i have an event reserved starting at X and ending at Y X = Wed Sep 10 2014 07:30:00 GMT+0000 Y = Wed Sep 10 2014 08:00:00 GMT+0000 and now im reserving a new event start = Wed Sep 10 2014 09:30:00 GMT+0000 end = Wed Sep 10 2014 09:30:00 GMT+0000 how can i check if they are not crushing? lets say the first event starts at 12:00 and end 14:00, i need to make sure that the new event is not held between these hours. it need to be started and end before 12:00 or after 14:00. thanks in advance!
  2. i suggest you take a look at this post i wrote http://avinahum.com/simple-yet-powerful-login-session-class-2/
  3. hello, i was thinking about start selling on codecanyon lately. i always bought there stuff but never thought to sell there and im not sure if it's worth to waste my time on trying to sell there. im not looking for a main income, just a few dollars a month will be good enough. is the competition is hard there? thanks in advance!
  4. or just start with putting your code in a CODE tag?
  5. hey there, lately im was working on a new application that required alot of ajax requests... i was wondering, many websites return fom the server a json object and then creates the html elements with javasript and then appending it to the document. why not return the html from the server and then just append it to a div, which is more easier! for example, lets say i want to print a table with shop items and their prices, why should i return a json object and then print a table with javascript with the data insted of return the whole html table from the server? am i missing something? thanks in advance.
  6. i have no problem to draw something on the screen, my main problem is to do the math and get the X,Y points...
  7. i'll explain better... i have a div with a background, i call it the galaxy... inside the galaxy div there a few div's with absalute position, i call each div like this a star... i need that each star will be surounded with a polygon as i demostrated in the picture...
  8. thr problem is that the number of stars and their positions are dynamic...
  9. Thanks... i know how to use the GD library, my problem is doing the math...
  10. hey... im making a simple game, and im trying to draw a dynamic polygon around each star in the game to show the stars area. for example, lets say "STAR A" positioned on X=50,Y=100 on the map, in the database i have a colum that determine the star's surended area for example, area=100; is that posible to darw a polygon around each star depending on the star area on the DB? another think is that each polygon shuold be in diffrent color. im not asking for the full soultion, but if someone can please give me some directions how to do it... im not good at math :| i made an image to demostarate what im trying to reach... Thanks in advance...
  11. as i see it now, it works perfectly! Thank you! Thanks for clearing this up to everyone ^^
  12. well, i still insist not to use cron :|
  13. first of all Thanks! second, it almost work... i set the time i have to get tickets to 14:19, and i did get this tickets, so the next time should be 15:19... insted it tells the next time is 15:00... another thing is that i have to handle minutes too... for example, lets say the last time i got tickets wast 12:20, then the next time i logged in is 14:10 so i have to get 30 tickets for 2 hours, and take in account that i have to get tickets again in the next 10 minutes! and yea, for the purpose im doing this tickets it is make a diffrence if a user will get tickets a few minutes after he registered :| Thanks again!
  14. im using the time() function... i dont using a cron cuz the time the user have to get the tickets depends on the time he registered... i dont want someone who registered in 13:59 to get tickets on 14:00
×
×
  • 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.