Jump to content

Jessica

Staff Alumni
  • Posts

    8,968
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by Jessica

  1. NO BECAUSE IT'S THE SAME FING THING!!!!
  2. <?php echo "Hello"; world"; ?> Is what you're doing in your code. See the difference between that and <?php echo "Hello world"; ?>
  3. You posted in PHP, and haven't said anything about any javascript until just now.
  4. You say "Framework" like there's one thing to learn. There are so many different frameworks to choose from, and they all work differently. Saying "learn Framework" is like saying "learn Software". What framework? If a developer starts out with a framework I think they cripple themselves. You need to have some experience doing raw PHP before adding in any libraries. Wordpress is for noobs? *eyeroll*. But yet you think it's worthwhile to reinvent Wordpress, without the years of experience and user feedback they have. I'd hate to use a CMS designed by you.
  5. If there is a limit to how deep the categories can go, you can simply join the table to itself a few times. Otherwise, write a recursive function to build the list after you select all of them.
  6. $query = mysql_query("INSERT INTO users SET email (firstname, surname) VALUES ('".$firstname."', '".$surname."')"); "' . mysql_real_escape_string($registerEmail) . '"; password = MD5("' . mysql_real_escape_string($registerPassword) . '"); date_registered = "' . date('Y-m-d H:i:s') . '"'; Do you understand the point of syntax highlighing? Or any of the code you wrote? Just READ IT.
  7. I wasn't aware of any way to run multiple queries in one statement using PHP. Are you capturing errors anywhere?
  8. I dunno. You're right. Which is why he should do the other thing I said
  9. Not really, I get what he's saying. 09-22-2012 9am = 1, 9am to 5pm is 12 spots, I'm going to throw in an hour for a lunch break so 10 spots. take the current date and get the number of days between 9-22-2012 and now, multiply by 10, and add 1 for every half hour. it's a bad bad idea, but not a hard formula.
  10. You should have a table of spots that are taken. That table should store the start and end time of an appointment, in addition to any other info that is important (but singular to that appointment).
  11. If you just store the start and end time of the appointments, it's much easier. So the issue is with your design.
  12. Can you just post the actual table structure with some data? Edit: I take that back, rather than storing whether or not a "slot" is open, you should only store the reserved datetimes. Then if it doesn't exist, it's available.
  13. That said looking at the actual post, what you have is such a basic syntax error that I can't comprehend how you don't get it at this point. The syntax highlighting shows it so clearly that all I can say is LOOK AT WHAT YOU WROTE. SLOW down, learn what you're doing, and do it RIGHT.
  14. Anything worth having is worth working for. Your options aren't correct. It's more like this. 1. Keep banging your head against a wall for 2 months, then spend a year fixing all the holes, cleaning up after problems, loosing members, and generally making a fool of yourself. 2. Do it right the first time, regardless of how long it takes. Which will be less time than it takes to do it wrong and then half-ass fix it, over and over again. To answer your question, I take the option which gets things done the right way. Are you serious? There are plenty of people here who are professionals. If my boss asked me this question (but phrased in a way that makes sense) and I *didn't* answer that I would do things the best possible way, I'd be out of a job. Sometimes in an emergency you have to take a shortcut. But if you set out to do things the lazy way in life, you will never get ahead. There's a reason that literally a dozen or more people here have told you you're going about things the wrong way. We know what we are talking about.
  15. I'm not trying to build a house that can stand up, I just want to build a house and then I'll make it stand up later.
  16. Properly indenting your code would make it more obvious.
  17. Honestly you should convert the fields to DATE format.
  18. You were already told how to do this without regex. http://forums.phpfreaks.com/topic/268607-no-html-in-comment-system/#entry1379760
  19. SELECT (DATE_FORMAT(NOW(), '%Y%m%d')) FROM tbl What does it show?
  20. Actually it looks like neither of those got the spaces, even the paste as plain text one. It looks fine in the paste as plain text box, but the spaces are gone now.
  21. If I copy/paste code from my editor, it comes out without indenting. IE: <?php function pr($a,$t=NULL){ print '<pre>'; if(isset($t)){ print '<h4>'.$t.'</h4>'; } print_r($a); print '<br><br></pre>'; } ?> To get the indented code you have to select the paste as plain text icon, which only does 1 or 2 spaces where there was a tab? It looks like crap. It also didn't save all of my spaces. <?php function pr($a,$t=NULL){ print '<pre>'; if(isset($t)){ print '<h4>'.$t.'</h4>'; } print_r($a); print '<br><br></pre>'; } ?> I also have no way to add an attachment when I'm on the preview post page. (right now.)
×
×
  • 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.