Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: Re: Re: MySQL Blob / DBI quote ?

by cchampion (Curate)
on Dec 20, 2003 at 23:04 UTC ( #316107=note: print w/replies, xml ) Need Help??

in reply to Re: Re: MySQL Blob / DBI quote ?
in thread MySQL Blob / DBI quote ?

Now, previously when the column type was "varchar(255) not null" , this insert code worked fine and all memos were added successfully.

I don't think so. It could not possily work with any value of $memo. For example, you are preparing a query with one placeholder and then you are executing without parameters. And your placeholder is quoted, so it could not work.

Further advice: use strict.

Replies are listed 'Best First'.
Re: Re: Re: Re: MySQL Blob / DBI quote ?
by perleager (Pilgrim) on Dec 21, 2003 at 06:14 UTC
    What do you mean by placeholders? The insert seemed to work fine for me and when I did a little script to view the db, $memo field was inserted fine and printed out fine, with the exception of cutting off 75% of the memo...

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://316107]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2018-11-17 19:26 GMT
Find Nodes?
    Voting Booth?
    My code is most likely broken because:

    Results (205 votes). Check out past polls.