Jump to content

Cronje

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Cronje's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. For the most part, I understand the math (and the parts I don't, I have faith are accurate). After reviewing what the range() function does, can I assume that the code will still work if I increased the size of the grid? The only part I'm truly confused about is the setting of the points. What specifically do the numbers mean? How do I determine what number corresponds with each grid square?
  2. Woops, just realized that I didn't clarify - the image is just for demonstration purposes. What I intend to use is a multidimensional array.
  3. Is there a way, through PHP, that I could find which squares a line being drawn from square X to square Y would intersect? For example: You can clearly see that the line runs through A1, A2, A3, B3, B4, B5. How can I make PHP determine the same thing?
  4. That worked perfectly. Thanks!
  5. I'm trying to determine the number of results from a SELECT, but am having trouble. My code: $query = mysql_query("SELECT * FROM tablename WHERE name='xxx'"); $num = mysql_num_rows($query); It works fine when 'xxx' is in the table, but when it finds none, 'echo $num;' doesn't display anything. Help please! -Cronje
×
×
  • 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.