Search results

  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.
  16. krahny

    Javascript: Confirm a page exit

    I want to make a page that, when the user presses the exit button, a confirmation box appears that says "Are you sure you want to exit?". If you click OK, then it closes, and if you click Cancel it dosen't. Heres the code that I have: <body onunload="confirm('Are you sure you want to exit?')">...
  17. krahny

    Javascript window.open specs not working

    Thanks! I was using firefox, but when I tried it in IE, it worked.
  18. krahny

    Javascript window.open specs not working

    I have a javascript function that opens a new window with a bunch of specs. As far as I can tell, only the width and height specs work. Here is the function: function open_win(URL,Title) {...
  19. krahny

    Hello Everyone!

    Hello, I recently signed up for x10hosting. I joined because x10 offers allot of thigs that other hosts dont offer, and I need. Me and my brother are working on an awesome mmorpg based in outer space, in the year 2160, called Celestial Horizon. Right now its in its early stages, but when its...
  20. krahny

    php Can't connect to local MySQL server through socket

    Thanks for the help. I have now fixed my problem and everything is working fine.:biggrin:
Top