Jump to content

ginerjm

Members
  • Posts

    6,906
  • Joined

  • Last visited

  • Days Won

    99

Everything posted by ginerjm

  1. IMHO - I would design my db differently. You're not going to put "variable" data into your "static" message, are you? You s/b creating a table of users with their info separate from the messages that you wish to send. Then, you pick a message and the users and do your mail generation. Unless you are sending totally unique messages to each person every time you send out mail, which I don't see working in a db-driven environment.
  2. 1 - what is a <name> tag? 2 - how about showing us how you are handling the country result?
  3. According to a google search you might try this: $stdin = fopen('php://stdin', 'r'); $response = fgets($stdin); PS - it is NOT completely skipping your if/else statements. It is logically proceeding through them and coming to a completely anticipated conclusion.
  4. Refer to the php manual and look up strtotime and date functions.
  5. You need to think more about your design and how you want it to work and then you need to learn some stuff about handling those buttons. I avoid giving people design advice - I limit myself to providing advice on things that you may have wrong in your code and can't figure out. Part of the joy and satisfaction of programming is coming up with a working design and implementing it. Have at it! Part of being a newbie is the learning process, so you have some work to do.
  6. Can't help until you implement the feature you want to solve.
  7. This is a cleaned up version of your php code: <?php echo '<h1>Hello World!</h1>'; echo '<h1>Second Heading Block</h1>'; echo '<h2>Hello World!</h2><b>This text bold!</b>'; echo '<h1>Third Heading Block</h1>'; ?> Nothing wrong with this code. If it doesn't work on your environment, suspect the environment, not the script. BTW - you mentioned that the correction simply added a semicolon. I don't see in this code where any semi could possible be showing up. BTW2 - you realize that you don't need php to display your sample outputs? It's all plain html, so the <? and the echo's are not needed.
  8. Where does your code handle the 'next' or 'prev' button? I see no check for one.
  9. Show us the revised code in its entirety.
  10. And your question is??? Probably the "second heading" line, no? Look closely and you should see your typo.
  11. After further review - I also see that you have wrapped your JS code inside another div tag. People may have problems with my next, but I find it preferable to place my js within my html header tag and not intermingle it with my html code. You can do it I guess, but I fail to see why. Frankly, the div here serves no purpose at all.
  12. At first glance I see the word "div" inside your very first <div> tag. What exactly is that?
  13. I'm not familiar with the mail syntax you show. Is this mailer from some 'package' (as recommended) instead of the simple PHP 'mail' function?
  14. the ".." means the parent folder - it is a common technique to make a relative path (as opposed to an absolute one). The single dot refers to the current directory - something that would mean "check the current folder before looking elsewhere" in your situation. So - if you are using windows, then perhaps your reference to the filename should use a backslash instead of the forward slash you have specified. Just a WAG...
  15. I'm no expert on this, but isn't your path supposed to use a colon ":" to separate multiple path values? You have dot semicolon as your first entry and then your second path that you referred to. I'm wondering if the semi is preventing it from being used.
  16. Have you enabled php error checking to see if there is something else in your script that causes the problem? BTW - I believe that the syntax is very specific: "Location: " must have a trailing space.
  17. Perhaps my mistake. I assumed OP had that html in a heredocs which is how I code most of my html
  18. For those of us who do not read people's attached files, could you show the specific code you are worried about?
  19. In that case you should just leave it all alone.
  20. I always put that line at or near the beginning of my scripts.
  21. If you wrapped your code in the proper tags it would be easier to work with. Also - if THIS code is not actually what produced that message, please give us the right code.
  22. When you finish this project, I highly recommend you read up on how to truly use CSS. Embedding your entire redundant style= string into a php var which is going to also be redundant(!) is not the way to do it. IMHO. Guessing here - but I don't think you need the quotes on the color variable. Just look at the previous color setting you have made: color:$FFF. No quotes there. What puzzles me about the strtolower (and it is not what the function call does) thing is you are converting a string that your code seems to be responsible for producing, so why not just create it in lower case - WHICH you are smart enough to already be doing, so why the function call? Lastly - forgive me if I'm still not understanding - you seem to be setting the var stormintensity into the style string you build,but it has no defined value at that point. Therefore, you are not assigning any (override) color based on content.
  23. My bad - I should of seen what objnoob pointed out about the error. So - the query failed. If error checking had been done ( if (!$results)..... ) you should have seen a hint as to what part of the query was invalid.
×
×
  • 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.