Topic Title: Coding help (Simple Topic)
Topic starter: justanius
Topic started: 22:56:06 22nd Jan 2011
Posts: 10 Last post: 00:28:38 31st Jan 2011 by justanius
justanius | Posted: 22:56:06 22nd Jan 2011 |
Posts: 37 Topics: 9 Location: United States Gender: Male |
I'm having a major brain fart right now. I haven't done much coding in the last year (and I'm also not much of a mathematician). I'm trying to write a script that will calculate the distance between an object and a destination
|
Marvel Magnum | Posted: 23:54:08 22nd Jan 2011 |
Posts: 330 Topics: 27 Location: Canada Gender: Male |
I don't know PHP but the math looks ok. (Maybe if it was C++, I could have helped ... )
|
Moiare | Posted: 10:55:33 23rd Jan 2011 |
Posts: 135 Topics: 6 Location: United States Gender: Male |
My PHP is rusty too, but are you missing some single quotes in the $object[ ] ?
|
justanius | Posted: 07:22:45 24th Jan 2011 |
Posts: 37 Topics: 9 Location: United States Gender: Male |
Oh no, I'm not I just changed them to make them more easily readable.
|
Exemplary Strategy | Posted: 00:14:16 25th Jan 2011 |
Posts: 928 Topics: 47 Location: United States Gender: Male |
what is the point, all you do is, +number to -number, in each area, and add the numbers.. so
|
Exemplary Strategy | Posted: 00:17:40 25th Jan 2011 |
Posts: 928 Topics: 47 Location: United States Gender: Male |
im trying to do the if for the calculation, but i know NO php, so dont be mad if you have to help me, btw, will people hit me up on msn frotobagginses@hotmail.com, if you think you can help. i'll show you what i have so far.
|
Exemplary Strategy | Posted: 00:38:08 25th Jan 2011 |
Posts: 928 Topics: 47 Location: United States Gender: Male |
<form method="get" action="action.php">
|
Exemplary Strategy | Posted: 00:39:46 25th Jan 2011 |
Posts: 928 Topics: 47 Location: United States Gender: Male |
im sure you can tell i dont know php from this, but if it helps, use it.
|
Exemplary Strategy | Posted: 00:54:57 25th Jan 2011 |
Posts: 928 Topics: 47 Location: United States Gender: Male |
the if statement i need help with, is a negative value checker, the problem is, i dont know how to do the math, i can do it without a calculator, making one for me is pointless, but, if someone wants it, that's a Great reason to make it.
|
H911Reiver | Posted: 02:02:31 27th Jan 2011 |
Posts: 1939 Topics: 44 Location: United States Gender: Male |
err, 1000 - (-1000) = 2000
|
justanius | Posted: 00:28:38 31st Jan 2011 |
Posts: 37 Topics: 9 Location: United States Gender: Male |
Yea, but that would just be making it too easy on myself. haha
|
Previous 1 Next