Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. #2 is probably the best option though you will want a LIMIT clause on your query and in reality, #1 is probably just as efficient (it also wants a LIMIT clause though). However, if you need to update the date_stamp anyway (as in example #4) you may as well get it all over and done with in one action. Of course, this is just my opinion. I am in no way "ULTRA PRO GODLIKE MYSQL MASTER!" and I very much doubt you'll find anyone here owning up to that title. Unless of course they are some complete twat.
  2. Write a few little test script and link between them dumping vars as you go. Then test moving between these script with cookies enabled / disabled.
  3. This would be something to bring up with SMF. Were not at all likely to make such a mod.
  4. Have you tested sessions outside of this application?
  5. Its pretty slow for starters + really, adding all that nice formatting makes your response just that little bit larger.
  6. tidy. I wouldn't bother in production, though it can come in handy during dev.
  7. You want us to do your homework?
  8. $HTTP_POST_VARS has long been deprecated in favor of $_POST.
  9. Funnilly enough, that's pretty much exactly what the error says.
  10. Your topic within the Beta Test board was not approved because you quite obviously didn't read the sticky within that board. So, now, thanks for the double post.
  11. Firstly, you would need to make $name a public property. Secondly, your f() method would need to return an instance of itself in order to be chainable. <?php class a { public $name; public function f() { $this->name = 'John'; return $this; } } $name = new a; echo $name->f()->name;
  12. Yes phpmyadmin requires a http server (Apache is a http server) to run. If you installed phpmyadmin via your package manager it likely pulled in Apache as a dependency and set it up for you which is why you should remove the one you installed manually. As for the files within /var/www. These are not part of the server per say, but this is generally where people put there various websites document roots.
  13. Never even noticed it. You best remove it, it does nothing and I would have thought would be giving you an error. The second arument to mysql_query is an optional connections resource. Optional meaning, not required. Whoever told you to put a 0 there was incorrect.
  14. $result holds a database result resource so it will never be equal to $sent_email. Instead of.... if($result==$sent_email){ try.... if (mysql_num_rows($result)) {
  15. This has what to do with Ajax? If you already have an echo statement echoing your form (its VERY unclear from your snippet) then its simply.... <input type='hidden' name='tbclient[total]' value='$total'> otherwise..... <input type='hidden' name='tbclient[total]' value='<?php echo $total; ?>'>
  16. trq

    Posting to SSL

    The form itself needs to be within a https domain I'm certain.
  17. Its likely that the host is setup to use ip based virtual hosts instead of name based. Its an Apache config choice.
  18. If you had your own server (or even a vps) you would have more options such as incron which can execute scripts when changes are made to directories. But without more control of the server yuor pretty limited in what you can do.
  19. If your util.php file outputs anything before the <html> tag it will make your document invalid. So yes, it sounds like your documents are structured incorrectly.
  20. Surely it is included into a process that does somewhere along the line include a html <head> tag?
  21. You need to include your style sheet wherever your html <head> is defined.
  22. trq

    Using SAX

    And.... your question / problem is?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.