Jump to content

niche

Members
  • Posts

    3,671
  • Joined

  • Last visited

  • Days Won

    17

Everything posted by niche

  1. It's always good knowing you and the crew are available. Thanks justsomeguy.
  2. I sent and associative array with consecutively numbered keys into array_unique(). The output no longer has consecutively numbered keys. What's the easiest way to renumber all the keys so they are numbered consecutively? EDIT:I decided on a foreach loop. Please let me know if there's a better way. $num = 0;foreach ($a as $value) {$c[$num] = $value ;$num++;}unset($a);$a = $c;
  3. Have you done any of the tutorials? If so, where is the problem in your code. Helping you is a lot easier when you can tell us specifically where it hurts. You've given us two pages to compare. I it just the pic of the gunman that's out of place? EDIT: Are you using any diagnostic tools like firebug?
  4. All the major container should be floated with margins and padding (float left, right, then center. Floating a main container and not floating anything else will cause problems. Also, I'd use margin: 0 auto; inplace of margin-left: auto; margin-right: auto;
  5. There are no rules/guidelines just the imagination of the coder.
  6. How do you save the value that's been calculated. Per the first post, causarius needs to know how many years each employee worked. I understand how to used that as a selector, but what if he wants to summarize that info in a table? I can image saving that calculation in in a cell that's there to receive it in a separate UPDATE, but I didn't think you can do a UPDATE and a SELECT in the same query.Is something like that possible?
  7. I didn't know you could save a calculation that's made in a query. How would you do that?
  8. What about your analylics? Owners will only own the bills when they allow themselves to be defined by other organizations. Google's stats are fine as far as they go, but they are nowhere close to exhausting all the possibilities. We live in an age where the difference between what can be imaged and what can be created has never been smaller. You have more power than a feudal king and all you have to to do is use it to think of a little code that nobody else has thought of or a new way to use some old code. That's what php and this this forum are all about.
  9. Per dsonesuk float is the way with margins, padding. If you want to center all you can use a div styled with margin: 0 auto;.
  10. I'd do the computations with PHP.
  11. It's mostly about purpose. What an organization considers to be in scope and out of scope. An organization won't tolerate code that it considers out of scope. For example, if you were a medical doctor you have to decide whether you are going to produce a service for a fee or whether your fee will be outcome based. The code will be quite different in both cases. If you earn a fee for a service it doesn't really matter what happens to your patient after they leave your office and your code would reflect that. If you're getting paid to produce an outcome (presumably a healthy outcome), you'll have some skin in the game and you'll need code that will tract a patient's progress (or lack of it) after they leave your office. If you just want to provide a service, all that tracking code would be considered "out-of-scope" and will be surppressed in some way. One thing is for sure, if you practice outcome based medicine, you'll trump the old model regardless of how your optimization compares to the other guy's provided the benefit you're producing for your patients exceed their cost. Without that tracking code and a business model that authorizes it, you'll probably be a doc that stands for little else than more of the same trying to wring the last five percent out of a tired business model created by another doc that's long dead or long retired. IMO.
  12. Code different scripts for different pages and adapt MyConnect.php to the page you need to create. That's the answer to the question that I think you're asking.
  13. We should be discussing code. However, the use (I said use not creation) of code is always limited by an organization's business model. It may be that you're approaching the expiration date on your model. In that case, optimization won't matter as much. When we're connected to an unlimited upside, it usually doesn't pay to enforce our rights or try to rub someone's nose in their misbehavior especially when most of the world doesn't follow our rules. When we're connected to enough upside, we're doing work so meaningful that we can't imagine doing anything else and are content to let the less inspired eat a few of our crumbs. IMO. I'm not trying to say "get over it". I am saying get to what's next. Do you want a share or do you want it all? Change your model, support it with code, and you can easily have it all.
  14. In a strict sense yes in a practical sense no. A template system is a more or less complete way of handling a coding situation in a predescribed way.
  15. It's always good to hear from Nebraska. As for your troubles, you're probably out of luck unless you have a some kind of intellectual right to the information and even then it may fall under fair use.
  16. Please post some code that demos the effect you need to produce.
  17. Point of information: I have no idea what happened to my first post. I'll use your suggestions . I also found changing the order of the code corrected the immediate problem. to this: <?phpecho '<button class="button" >Item <br/>Info</button>'; echo '<button class="button2" >Company Info</button>';echo '<div class="message">Item Info</div>';echo '<div class="message2">Company Info</div>';?> from this: <?phpecho '<button class="button" >Item <br/>Info</button>';echo '<div class="message">Item Info</div>'; echo '<button class="button2" >Company Info</button>';echo '<div class="message2">Company Info</div>';?> Thank-you for your dsonesuk.
  18. I have a script for two hovers. How do I keep the "Company Hover" from displacing the "Item Button" (ie how do I keep the button from jumping around)? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><?php session_start(); ?><html xmlns="http://www.w3.org/1999/xhtml"><head><meta name="description" content="Save money" /><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><title>savebop </title><style type="text/css">.button {padding:0px;width:82px;height:40px;vertical-align:top;}.message {position:relative;margin:10px 0px 0px -5px;background:white;width:100px;display:none;border-style:solid;border-width:4px;}.button2 {padding:0px;width:82px;height:40px;vertical-align:top;}.message2 {position:relative;margin:10px 0px 0px -5px;background:white;width:100px;display:none;border-style:solid;border-width:4px;}button.button:hover + div.message {display:block;}button.button2:hover + div.message2 {display:block;}</style></head><body><button class="button" id="a1" >Company Info</button><div class="message" id="a2">This company.</div> <button class="button2" id="b1" >Item Info</button><div class="message2" id="b2">This item.</div> </body></html>
  19. "_" is used to promote readability and the entries are called tags. They're spread out because that's how some people code. I'd probably start with questions like what's in the top part of your script and what are you planning to do to tame it?
  20. Never been to that page. As Spock said, "for everything, there is a first time". Thanks for your help Ingolme and dsonesuk.
  21. Dsonesuk, cool trick. I didn't know css has operators. Is there a ref for that?
  22. Thanks Ingolme. I just switched from a button to a div and problem solved. What's the easiest way to style a div to make it appear the way a default button appears including text? I can think a way to build it up with divs , but that seems like a lot of code for such a little thing.
  23. This hover works in ff, but not in ie. Is there a work around available? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><?php session_start(); ?><html xmlns="http://www.w3.org/1999/xhtml"><head><meta name="description" content="Save money" /><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><title>savebop </title><style type="text/css">.button {padding:0px;width:82px;height:40px;vertical-align:top;}.message {position:relative;margin:10px 0px 0px -5px;background:white;width:100px;display:none;border-style:solid;border-width:4px;}button.button:hover div.message {display:block;}</style></head><body><?php echo '<button class="button" >Company Info';$item = "This item."; echo '<div class="message">' . $item . '</div>'; echo '</button>';?> </body></html>
  24. Simple enough. Thanks ShadowMage and thanks again Ingolme and eTianbun for your help with a very satisfying topic.
×
×
  • Create New...