Jessica
Staff Alumni-
Posts
8,968 -
Joined
-
Last visited
-
Days Won
41
Everything posted by Jessica
-
And the problem is...?
-
So there's a fairly obvious step to take....
-
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?
-
Which is it, you're trying to echo the name or the ID? Where is the code that creates $recipe?
-
How can I save the my database contents to json
Jessica replied to Stuart_Westgate's topic in PHP Coding Help
Well, what's the output of it? -
Wamp xampp or IIS , which one?
Jessica replied to alfredo's topic in PHP Installation and Configuration
I like WAMP -
PDO.
-
Making the result of a variable a variable itself
Jessica replied to elmas156's topic in PHP Coding Help
You may want to look into a templating system. -
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.
-
Making the result of a variable a variable itself
Jessica replied to elmas156's topic in PHP Coding Help
Try it and see. -
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.
-
Remove All the error surpresssors @
-
strtotime() is interpreted differently on different servers
Jessica replied to MockY's topic in PHP Coding Help
Elegant. -
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.
-
I am having a problem sending info to a database
Jessica replied to nikhilsnehilster's topic in PHP Coding Help
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. -
You already have a thread for this topic. Please go read our rules.
-
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.
-
Well? The error is telling you the problem. Did you read it?
-
So you are not actually displaying errors. Do a phpinfo() and check if display errors is on
-
Force user to choose one control or the other, not both
Jessica replied to timcadieux's topic in PHP Coding Help
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. -
define string from variable as another variable - Possible?
Jessica replied to Phear46's topic in PHP Coding Help
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. -
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.
-
Are you storing the date they last changed it as I suggested?
-
You were using mysql before. Did you switch everything to mysqli? Enable error reporting.