Jump to content

AndyB

Staff Alumni
  • Posts

    5,465
  • Joined

  • Last visited

    Never

Everything posted by AndyB

  1. Then input_select($row['article_id'], $defaults, $live) must be doing some really creative stuff (including generating code that jumps out of where it belongs). I'm skeptical that your posted code produces the output you claim, because that just doen't seem rational. If you echo something between TD tags, that's where it stays.
  2. Sure. When you get a white page, view the html source and post exactly what you see. If that doesn't do it, then turn on php error trapping and error display. You can google both those for methods, or check the php online manual. Hint: <?php ini_set ("display_errors", "1"); error_reporting(E_ALL); It's hard for us to help you through an error (or more) when you tell us you have an error in line X and leave us to guess which is line X and/or when all we see is 4 or 5 lines of a larger script.
  3. Are you 100% sure that the script you think you're using is what's on your server?
  4. font of all float wisdom - http://css.maxdesign.com.au/floatutorial/introduction.htm
  5. Your real problem is that you are testing for the non-existent variable named submit. The real name of your input is Submit.
  6. Have you inspected the generated HTML code? It will show you the result of the problem, and that should help you find the cause.
  7. What did you learn from the link I gave you earlier? http://www.lissaexplains.com/tables.shtml - if that doesn't do it for you, nothing will. And if your code "doesn't work", blame it on the image slicing program you used.
  8. AndyB

    [SOLVED] columns

    http://www.phpfreaks.com/forums/index.php/topic,95426.0.html
  9. http://www.phpfreaks.com/forums/index.php/topic,95426.0.html
  10. Just a general comment as follow-up. I'm not sure how the invoices actually look, but I suspect that if I sent a client an invoice claiming I'd worked 11 minutes and 13 seconds on his project he might think he was being 'nickel and dimed'. Accumulating time charged to a project on a daily basis and rounded to the nearest 15 minutes would be a 'friendlier' approach. $20/year looks like a pretty minimal amount which would pay back if the system allowed a user to capture half an hour over a year that they otherwise forget. I find myself doing a lot of odds and ends for one client - a few minutes here, a few minutes there and at the end of the month I 'invent a round number' based on how many emails he sent and fire off an invoice. I probably under-bill him and your system would help .... as long as I remembered to turn off the timer when I skipped out to the washroom or checked a favourite web site when I was supposed to be working.
  11. Best guess - without seeing your code. It does load. It shows a blank screen. You don't have error display set to on and you have an error in your php code.
  12. In cases like 'not working', it sometimes helps to view the generated HTML code. Try this variant: <?php echo "<td class='td_id'><a href='mailto:". $variable5. "'>". $variable5. "</a></td>\n";
  13. Unless you've set your server to parse .html pages, the server isn't going to recognize the php script content. Perhaps if you renamed the page logon.php you'd have some success. Or maybe you just forgot the opening php tag.
  14. Couple of quick/random comments. The timer does not reset after time is allocated to a job. It's possible to leave the timer running and then bill the increased time to a different job. I know we all multi-task, but ... I'd move the 'cancel' icon in template editing up to the top of the scrollable area (sad to say, it took me too long to work out how to exit from template editing). I really don't like having content forced into a scrollable area when it could just as easily have been displayed so I scroll the page to see what's below the fold. Where's the "Help, I can't remember how to" icon?
  15. You already have a thread open for the same question. It is against forum rules to double-post. Stick with this one - http://www.phpfreaks.com/forums/index.php/topic,220142.msg1009446.html#msg1009446 Thread closed.
  16. Try this: <?php $result = mysql_query("SELECT * FROM subjects ORDER BY position ASC",$connection); if(!$result){ die("subject query failed: ". mysql_error()); } while($row = mysql_fetch_array($result)){ echo "<li>{$row["menu_name"]}</li>"; $result2 = mysql_query("SELECT * FROM pages WHERE subject_id={$row["id"]} ORDER BY position ASC",$connection); echo "<ul>"; while($row2 = mysql_fetch_array($result2)){ echo "<li>{$row2["menu_name"]}</li>"; } echo "</ul>"; } ?> Then $result and $row will no longer be confused in the two queries.
  17. <?php $x = glob("*.php"); sort($x); for ($i=0;$i<count($x);$i++) { echo $x[$i]. "<br/>"; } ?> That works for me, installed in the target directory. You can adjust to suit, including turning the file names into clickable links.
  18. It appears as though you have resolved this. If so, click the topic SOLVED icon.
  19. @ F1Fan - no prob. I've made more mistakes than I've had hot dinners.
  20. News to me that any array variable needs braces. Guess I should change all my code :-\ Alternatively: echo "<tr><td><input type='text' name='name' value='". $_SESSION['name']. "'></td><td><input type='text' name='email'></td></tr>"; @phatgreenbuds - not even CSS is powerful enough to fix php syntax errors!!
  21. I don't know what overall_header.html is supposed to do. Neither colours.css nor common.css are loaded based on the viewed source of your page, so who knows what role they play (apparently none). Best guess is that one or more of the used CSS files have a relatively link path to your image that doesn't match where the image actually exists.
  22. No. Confirm that you saved the image in .ico format and show us the html you are using that works with IE and fails with FF.
  23. I use this at the page start: $starttime = explode(' ', microtime()); $starttime = (float)$starttime[1] + (float)$starttime[0]; and this at the page end: $endtime = explode(' ', microtime()); $endtime = (float)$endtime[1] + (float)$endtime[0]; $totaltime = number_format(($endtime - $starttime), 3, '.', ''); echo "<p>My server generated this page in $totaltime seconds</p>"; Does that help?
  24. That's it. sith - stop this nonsense. Read and understand our rules. Thread closed!
  25. http://en.wikipedia.org/wiki/Favicon http://www.w3.org/2005/10/howto-favicon http://www.favicon.cc/ have fun
×
×
  • 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.