Jump to content

Jessica

Staff Alumni
  • Posts

    8,968
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by Jessica

  1. And the problem is...?
  2. So there's a fairly obvious step to take....
  3. Did you change the code or just post your entire code here again? If you're saving the new file as a.png and saving the metadata to b.png, why would you think a.png would get the metadata?
  4. Which is it, you're trying to echo the name or the ID? Where is the code that creates $recipe?
  5. Well, what's the output of it?
  6. I like WAMP
  7. You may want to look into a templating system.
  8. Most people aren't going to open up your files. Make sure you're checking that the form was actually submitted before trying to process it, and make sure the form field names match what you're looking for in the $_POST array.
  9. While that is entirely true, it's not a "bug" in his code because he used double quotes which interpolate variables. So echo "$fn"; will WORK, it's just not RIGHT.
  10. Thanks for sharing your solution. There's no reason you couldn't add it based on your code.
  11. Remove All the error surpresssors @
  12. No data meaning what? If there's no data will $xml->report be null, 0, an empty array? Check the documentation. You'll have to figure out based on the XML document what qualifies as no data, and test for that.
  13. What's the problem? This forum is for help with your code, not writing it for you. Please post your code and explain in detail what you want to happen, what you've tried, etc etc.
  14. You already have a thread for this topic. Please go read our rules.
  15. It's a signature dude. I didn't leave because I wasn't willing to help. I left because I had work to do. You didn't "waste" (that's how it's spelled btw) anything because you learned how to do a JOIN which was what was needed.
  16. Well? The error is telling you the problem. Did you read it?
  17. So you are not actually displaying errors. Do a phpinfo() and check if display errors is on
  18. Yes you could perform validation upon submit, and yes you could also add client-side validation and instruction. How? That's up to you? The server-side validation would be pretty straightforward, so the client side part is where you have some flexibility. The first thing that pops into my mind is having a radio for Specific Date / Date Range. When you change the radio, use JS to hide the "wrong" fields and show the needed fields. Then in your server side only use which one is appropriate based on the radio selection. Another option is to provide both boxes, label the first one (Exact Date OR Date Range Start) and the second (Date Range End), and provide text explaining what to do.
  19. While you can just assign the entire $_POST array into another variable, why would you have to? If all your code is already in a function, just send the $_POST array to the function. As long as you're not passing by reference, your original array will not be touched. The actual problem you're having isn't very clear however.
  20. A JOIN is definitely relevant. YOu should never ever do queries in loops. You want to do an INNER JOIN on your settings to the lists table. Once you get that working (Try doing the query directly in mysql/phpmyadmin) we can help with any other issues.
  21. Are you storing the date they last changed it as I suggested?
  22. You were using mysql before. Did you switch everything to mysqli? Enable error reporting.
×
×
  • 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.