<div class="gmail_quote">On Fri, Nov 27, 2009 at 9:02 AM, Rami Chowdhury <span dir="ltr"><<a href="mailto:rami.chowdhury@gmail.com">rami.chowdhury@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Fri, Nov 27, 2009 at 02:59, Victor Subervi <<a href="mailto:victorsubervi@gmail.com">victorsubervi@gmail.com</a>> wrote:<br>
> On Thu, Nov 26, 2009 at 5:08 PM, Dennis Lee Bieber <<a href="mailto:wlfraed@ix.netcom.com">wlfraed@ix.netcom.com</a>><br>
> wrote:<br>
</div><div class="im">>> Nothing hinting at having<br>
>> opened an interactive Python console and typing statements into it as an<br>
>> experiment to see what may work, or what changes may break something.<br>
><br>
> Please explain how this makes a difference. If I have the error in hand from<br>
> trying to run the code through the Web--either printed to screen or gathered<br>
> from the errors log--what need of opening the python interpreter<br>
<br>
</div>If you are content to run your code through the Web, and iterate<br>
through versions of it there, then that's up to you. I'd suggest using<br>
the interactive interpreter when you can, though -- most Python<br>
programmers that I have encountered find it extremely helpful. In<br>
particular, it can be invaluable in examining short snippets of code<br>
-- such as the segments that are giving you trouble -- without<br>
rerunning the whole program.<br></blockquote><div><br>I usually do. I'm in a peculiar situation now, broke and rebuilding, borrowing other people's computers, etc. Won't last too much longer :)<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<br>
When I am debugging errors such as this, what I typically do is snip<br>
out the particular bit that is causing the problem and run it in the<br>
interactive interpreter, experimenting with changes to it until it<br>
works as I want it to. Perhaps such a method would help you in<br>
debugging as well? Certainly it would enable you to give the list a<br>
little more information about what you have and haven't tried when<br>
coming here with a problem...<br></blockquote><div><br>How should I do that in this instance? Here's the problem: the form on the previous page supplies an uploaded image to the second page which is then inserted into a MySQL table. The difficulty I am having is that for some reason it's not inserting. The form inserts the first image but not the second. When I print out the sql query I am submitting, less the image itself, it prints correctly. When I print out the image itself, it also prints correctly. So I don't understand where the problem could possibly be. I appreciate your help as always :)<br>
V <br></div></div><br>