Recent content by krahny

  1. krahny

    Are there two sine and cosine ratios?

    Thanks, i had tried that, but something's screwy. I have some actionscript code(which is almost exactly the same as javascript) that is supposed to use two values(determined by the position of the mouse) to make an arrow pointing to a direction and extend to a certain length, but I think...
  2. krahny

    Are there two sine and cosine ratios?

    How do I inverse the operations in javascript?
  3. krahny

    Are there two sine and cosine ratios?

    Thanks, Lemon-tree, that code worked. :smile:
  4. krahny

    Are there two sine and cosine ratios?

    When I enter sin(0) in a calculator, it gives me 0, and sin(90) gives me 1, just like I'd expect it to. But, when I use javascripts Math.sin() and Math.cos() functions, they give me completely different results. I think they might have something to do with pi, instead of an angle. Could someone...
  5. krahny

    php create link on users desktop

    I'm making a website in php and i wanted to make it so that the user could download a link to their desktop with a thumbnail that i have, that takes them directly to my website. Is this possible, and if so, how is it done? Thanks!
  6. krahny

    PHP parse error

    Thanks again! I think I forgot a : at the end of a line.
  7. krahny

    PHP parse error

    Thanks, I forgot to end an else block. Now I have another error that I don't know what means: Parse error: syntax error, unexpected T_IF in /home/krahny/public_html/index.php on line 71 Here's the php code, starting on line 61: 61: <?php 62: 63: if(isset($_POST['username'])){ 64...
  8. krahny

    PHP parse error

    I have a php page and when I try to load it, this error appears: Parse error: syntax error, unexpected $end in /home/krahny/public_html/index.php on line 86 This doesn't make any sense to me, since line 86 is the last line, with the </html> tag. Could someone please help me? Thanks!
  9. krahny

    Flash database connection through sockets

    I found a website with a tutorial on how to connect flash to a database through sockets, http://www.devx.com/webdev/Article/30638. It has a list of requirements and I wanted to know if x10 supported these: - A Java IDE (Eclipse 3.0 used by the author) - Microsoft SQL Server 2000 driver for JDBC...
  10. krahny

    php detect session end

    Does anyone know how I could detect when a php session ends and execute some code? Thanks.
  11. krahny

    session variable not working

    No, I forgot to put session_start() on the second page. Thanks!
  12. krahny

    session variable not working

    I have a session variable set on one page, and I know it gets set because it works for that page, but whaen I go to a new page, it seems as though it's not set. Here's the code that sets the variable: session_start(); $_SESSION['logging']=$_POST['username']; Here's the code that's on both of...
  13. krahny

    Javascript: Confirm a page exit

    It worked! Thanks!:biggrin:
  14. krahny

    Javascript: Confirm a page exit

    I tried this code, but it didn't work either. Thanks anyway.
  15. krahny

    Javascript: Confirm a page exit

    Could you please explain to me how to do this? Perhaps some code or something.
Top