Search results

  1. W

    HTML question

    There's a few ways to a new list to load depending on what's selected in the first list. You could have the page reload when the user selects a different option and add the selection to the url(e.g., something.php?selection=value). However, if you want to avoid reloading, then you could use an...
  2. W

    help w/php mail

    That code looks fine to me. I would double-check that the email you have in $toaddress is correct. Also, you might wanna blot it out if it is so spam bots can't get it.
  3. W

    Hey guys! My X10hosting ads and some other scripts which i have just add to my forum

    Re: Hey guys! My X10hosting ads and some other scripts which i have just add to my fo I wouldn't worry about it if you can't see them in IE. Since other people say they can see them fine, I would say that you have added them correctly. Chances are that your IE settings are not allowing them...
  4. W

    Help With IPB Mod I'm Developing

    Could you make that board online so that I can view the full source and test it myself? *** Nevermind, I think I spotted the problem. Try this: <!--Code by cgrim29588 of http://z9.invisionfree.com/Simple_Systems/index.php? //--> <br /><br /><font color="#313131">--</font><b>Forum...
  5. W

    x10hosting compatability with dreamweaver CS3?

    You've definitely got one. Where are you looking that you don't see it? In Dreamweaver's remote host directory listing? Perhaps a screenshot would clarify things. I believe you must be looking in the wrong place.
  6. W

    Help With IPB Mod I'm Developing

    I'll just post the whole modified code to make it easier. <!--Code by cgrim29588 of http://z9.invisionfree.com/Simple_Systems/index.php? //--> <br /><br /><font color="#313131">--</font><b>Forum Legend</b><br /> <div align='left'><font color="#313131">-</font> <img...
  7. W

    Help With IPB Mod I'm Developing

    For code that small, you could have just pasted it here rather than uploading it, in rtf format no less, to a site which makes you wait 45 seconds to download files. But anyway, I'm a little confused here so my suggestion might not be what you want. However, try adding the line...
  8. W

    html tags - help anyone?

    I've never used Web Developer either, and I'm certainly not pro-MS, but I wouldn't call IE's css support "poor". It may be a little lacking when compared to other mainstream browsers, but it's definitely adequate.
  9. W

    Safety?

    I really didn't understand that too well either. Are you trying to say your teacher doesn't want you to store your database password in a script? If his solution to this is to have the db password entered in a field whenever php needs to connect to the db, then he's clearly insane. If you want...
  10. W

    Check Screen Resolution With PHP

    That's understandable. I find myself having to relearn several things if I don't work with something for a while too ;-)
  11. W

    Check Screen Resolution With PHP

    There is a difference when JS is making the output instead of PHP. If you output JS code, the result is unknown to the server since it's only going to be executed on the client. If you set a variable to some JS code, php just sees it as a string. Try doing this with that $width variable from...
  12. W

    PHP Guestbook

    If you didn't define it, I believe that php will conclude that you passed 0 as the second argument for date(), which is why you would get that other time. Try this instead: function getMysqlDatetime($timestamp = false) { return date("Y-m-d H:i:s", (!$timestamp && $timestamp !== 0 ? time()...
  13. W

    Check Screen Resolution With PHP

    I don't believe he wants the resolution outputted because he said he wanted to change a variable based on the client's resolution. So I'm fairly certain he wants a way for php to get the client's resolution and use it in his script.
  14. W

    Check Screen Resolution With PHP

    I don't think that would work unless I'm misunderstanding what the OP wants to do. I assume he wants to get the client's resolution and make layout adjustments depending on it, such as deciding on which stylesheet to use. If this is the case, then I would personally recommend having JS get the...
  15. W

    I need get the server time

    I don't think ajax is necessary if he's looking to have the page refresh at a certain time. If the server just gives JS its current time on page load(e.g., onload="init(<?php print time(); ?>")), and then JS keeps track of how much time has passed since page load, then the client shouldn't need...
  16. W

    PHP Guestbook

    Can you show us the line where $timestamp is being defined? You should be setting it to the value of time() I believe.
  17. W

    Cookie Help (the one below didn't help)

    Instead of including, try redirecting to http://members.telvior.com/membersOnly/index.php. I think that setcookie() doesn't register the cookie in the global immediately.
  18. W

    PHP-MY SQL question

    After one script has called session_start(), the $_SESSION variable is available anywhere after this, in included files as well. As for why to include files, it's usually to either break up a large script or share common code between multiple scripts. A good example of this is that many sites...
  19. W

    [php] variables

    You need to use curly braces and concat the variable to the string. Like this: $war_type = 'x'; ${$war_type . '_cost'} = 10; //Now you have the variable $x_cost
  20. W

    php login system help...

    There were only 2 of us :P Anyway, the -> is just used to access properties or methods of an object. Since you used mysql_fetch_object(), the result row is returned as an object with all the fields as properties. Try going here if you really wanna learn about php objects...
Top