Search results

  1. natsuki

    STUDENT - Javascript Problem

    this one I explained already in PM It seems I share the same principles with the other posters regarding code organization.^^
  2. natsuki

    Script Help Please

    Even if you change a variables content inside a function, the value of the variable will remain unchanged outside the function unless you declare it as global as xav0989 said. The simplest workaround is of course having the function return the value instead as Salvatos said. The other option is...
  3. natsuki

    Make Login Page

    Zenax found the problem, you should use 'localhost' as hostname (if both database and files are on x10hosting).
  4. natsuki

    STUDENT - Javascript Problem

    no prob^^ just remember to always do a check of the inputted values if they are really numbers or blah
  5. natsuki

    STUDENT - Javascript Problem

    You don't really need to use AJAX on this one as simple javascript can do the trick. You can change the text in a textbox/div or anything at all with a button click or just any other event. I needed to save your code and load it on my own just to find out the erros. It could have been better if...
  6. natsuki

    ORDER BY challenge..

    It definitely can be done with javascript, but I dunno how to do it so that the page doesn't reset hm.. maybe if you can use javascript to make an sql query and repopulate the table/list with it.
  7. natsuki

    ORDER BY challenge..

    is what mattura said is the query string in the url: href="page.php?order=name<?= htmlspecialchars(urlencode(&var1=value&var2..)) ?>"></a> but that means you have gotten all the data into some variables (meaning the form has been posted at least once, else for larger data, use sessions instead.
  8. natsuki

    Image checkbox

    EDIT: check for the box number and a loop ... for ($i = 0; $i < <total of boxes>; $i++) { if (isset($_POST['box'.$i])) { $box = $_POST['box'.$i]; $box = stripslashes($box); $box ? $message .= '<b>Box ' . $i + 1 . ":</b>..$box.." : ; } } .... something like...
  9. natsuki

    ORDER BY challenge..

    i don't understand what you want to do with the code, when you reload the url all the vars will be gone unless you appended them to the query url. And those are long variable names maybe put them in an assoc array so it's easier to manage them.
  10. natsuki

    PHP Source Code

    CMS (Content Management System) are the ones like forums phpBB, wiki, blog, etc.. which are premade and usually has a lot of features and complex code.. I also didn't know what CMS meant before ^^; OT: salvatos I really like your idea of a PHP RPG I support you on that! Can't wait to see it!
  11. natsuki

    PHP help

    leafypiggy is right..
  12. natsuki

    STUDENT - Javascript problem

    The calculate button really does nothing at all...^^ I think it's better to give and explain the formula than actually giving the whole code especially if it's a homework, so he can still make it himself. calories that are burned per activity per hour are: bicycle jogging swimming create...
  13. natsuki

    PHP, MySQL, and resources

    a foreign key that is a primary key from another table. Make a separate skills table and then add a foreign key to it that references to your players. Or the other way around can be done too. SELECT u.userID, u.username, s.skill, s.use FROM users u INNER JOIN skills s ON u.userID = s.userID...
  14. natsuki

    Help! my site is down!!

    I found the problem why it was still down and redirecting. It was because of the wrong url in the database, manually changed it and it's now fixed. Many Thanks again!!^^ Problem solved.
  15. natsuki

    CSS Question

    Just use overflow attribute of like div so it can scroll without affecting the layouts. try xmakina's link
  16. natsuki

    Help! my site is down!!

    I restarted my pc already but I'm still getting network timeout. I had a friend check it and they got timeouts too.. Very Thanks for helping but I htg now I'll just check tomorrow. thanks!
  17. natsuki

    Help! my site is down!!

    Yay thanks!!!! uhh... how do I flush the dns? I still get taking too long to respond error. Edit: I'm still getting a network timeout error. Is there anything I need to do?
  18. natsuki

    Going From E-gold to Paypal, I need Geniuses To Help!

    There ought to be some paypal php scripts somewhere on the net... if only we could find one
  19. natsuki

    Help! my site is down!!

    ohh Thanks!!
Top