Jump to content

Daniel0

Staff Alumni
  • Posts

    11,885
  • Joined

  • Last visited

Everything posted by Daniel0

  1. If you want to get the values for the checkboxes from the database, then you can do it like this: [code]while($row = mysql_fetch_assoc($query_result) { echo "\t<label><input type='checkbox' name='flight_ids[]' value='{$row['value']}' /> {$row['user_readable_name']}</label>\n"; }[/code]
  2. Do anyone else experience that Java use a lot of the memory on Windows? I have experienced a memory usage of 100,000 kb. Do anyone know a fix for it?
  3. [code]SELECT * FROM stuff ORDER BY order ASC;[/code] Or if you got a table for the orders then something like this: [code]SELECT s.*,o.* FROM stuff AS s LEFT JOIN orders AS o ON s.id=o.oid ORDER BY o.order ASC;[/code]
  4. Try to put ob_start() at the very top and make sure there are no whitespaces before PHP block.
  5. Try to remove the muting @ in front of the setcookie in order to see if any errors are returned.
  6. Why can't you use order? Could you show us the query?
  7. You need to give us the source of the code settings the cookie.
  8. Uninstall Office 2007 beta?
  9. You might want to do this: [code]$path = empty(@getcwd()) ? @getcwd() ? str_replace($_SERVER['document_root'],'',@getcwd());[/code]
  10. Change the left-padding of the li to something like 1em.
  11. Hmm, yeah... I wonder what it is indexing because I have indexing turned off in Windows.
  12. Oh ok. I just wondered since on the old CRT monitors any screen resolution would look ok.
  13. Yeah I use Office 2007 Beta 2. Hmm, according to the last link you showed there is no solution other than uninstalling it :(
  14. Save file one as eg counter.php Then on the pages you want counted, put this: [code]include("counter.php");[/code]
  15. On my Windows XP installation there is a program called searchindexer.exe that keeps running in the background. It ends up using like 100 mb of memory and if I terminate the process it just restarts again. Do anyone know which program that uses it, or if it is one of Windows' programs, how do I shut it off?
  16. So it would be fine to just stick with my VGA cable? If I change the resolution to anything different from my monitor's native resolution (1440x900) the image looks grainy, would a DVI cable solve that?
  17. [quote author=Jocka link=topic=110909.msg449630#msg449630 date=1160454708] The only reason i'm using IE is because (get this) my ISP doesn't support any other browser. If I use FF, it goes WAY slower. [/quote] Sure it is not because Firefox hogs up a lot of system resources and thereby slows down your computer and not your internet connection?
  18. 1. Set [tt]allow_url_fopen[/tt] to [tt]on[/tt] 2. That is a matter of file permissions (chmod on linux).
  19. What you got should work, but you could try this instead: [code]ini_set('error_reporting', E_ALL); ini_set("display_errors", 1);[/code]
  20. Yes.
  21. [quote author=obsidian link=topic=111019.msg449839#msg449839 date=1160489241] shorten it up a bit: [code] <?php $time = "09:00:00"; echo date('H:i:s', strtotime("$time +30 minutes")); ?> [/code] [/quote] Ahh, nice. I was looking in the manual, but I couldn't see if it was possible to give a time and a +30 minutes thing...
  22. Could you put up an example script where the page defined in the action attribute is just a php script with print_r($_POST) in it?
  23. Store the bread crumbs in an array like this: [code]$nav[] = array('Main page','index.php'); $nav[] = array('Some other page','index.php?page=some_other'); $nav[] = array('Yet another page');[/code] Then when generating the bread crumbs do this: [code]<?php foreach($nav as $bc) { $nav2[] = empty($bc[1]) ? $bc[0] : "<a href='{$bc[1]}'>{$bc[0]}</a>"; } echo "<div id='bread_crumbs'>".join(' &gt; ',$nav2)."</div>"; ?> [/code]
  24. If you just need to add 30 minutes to the time, then do this: [code]<?php $time = "09:00:00"; echo date('H:i:s',strtotime("+30 minutes")-time()+strtotime($time)); ?>[/code]
  25. If you need to test your application without dealing with real money, you can use the [url=https://developer.paypal.com/]PayPal Developer Central[/url].
×
×
  • 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.