Jump to content

Jessica

Staff Alumni
  • Posts

    8,968
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by Jessica

  1. Maybe it's the fever, I can't follow the logic.
  2. Get the count of the rows which are not active. If its zero, run the command to update them all active.
  3. You need to check for errors after you query. See my signature. Why do you have !! in your function there? Edit: I see your second set of code. What does the query look like when you echo it? Echo the query string, not the result object.
  4. Yes, it's possible. Use COUNT()
  5. Probably best to use an array, but you could also return the string you plan on echoing.
  6. Did you change $array to your actual array?
  7. No, return the values.
  8. You haven't really given us enough information to help you.
  9. Oh I just noticed you have all that in a function. You have a variable scope issue. If you're not returning the variables from the function you can't use them.
  10. And what did it show when you changed <div id="container"> <h1>Recipe: <?php echo $recipe_title . ' by ' . $recipe_brewer; ?></h1> </div> to <div id="container"> <?php var_dump($recipe_title); ?> </div> ?? What code is between these two snips?
  11. Turn on error reporting, and post the actual output - ie, does it say Recipe by two times??
  12. Well one says "It runs on most Unix systems (including Mac OS X) which have Perl, DBI, and Term::ReadKey installed." So...
  13. By tutorial you mean homework, right?
  14. I'm not great at regex, I just wanted to say don't put an upper limit on passwords. I use several that are way longer than 32.
  15. If it's an HTML form, that is default functionality.
  16. Don't take this the wrong way but do you understand how PHP works? Every page load, unless you've stored information in the session, that information has to be selected from the database again. Simply changing the value right before it's displayed on one page would not affect the other pages. You said you're using something that is supposed to support "multi vendor shipping" - you shouldn't have to be touching the code at all.
  17. Then you'll want to find the code which generates that array. Otherwise you will indeed have to change it on every page that accesses that array, as you've already discovered.
  18. The vendor id for a specific product ought to be stored in a database. Not changed in the code.
  19. Is that really not stored in a database?
  20. Hmmm now I'm wondering what it was that I couldn't use JS for that one time.... *wanders off*
  21. My bad, I was thinking of the # part I think? Who knows.
  22. Why don't you try it out and see? Put it in a loop and go through a bunch of scenarios.
  23. Without a date, how do you know if its 1 am the next day or 1 am three days later?
  24. You've been given all the clues you need to solve it. Why don't you try to write the function using that help and if you're still stuck, post back with your code and the problem.
×
×
  • 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.