Of course, depending on the application, this could mean hand-modifying every script... so my apologies if this was not what you were after ;) > Could it be as simple as: > $sth = $dbh->prepare("INSERT INTO table (row1, row2) VALUES (?, ?)"); > if ( $webinput eq "" ) { $webinput = undef ; } > $sth->execute($webinput, $otherstuff);
- NULL vs. Empty String David Wheeler
- Re: NULL vs. Empty String Daniel Kirkwood
- Re: NULL vs. Empty String Daniel Kirkwood
- Re: NULL vs. Empty String David Wheeler
- Re: [GENERAL] NULL vs. Empty String Oliver Elphick
- Re: [GENERAL] NULL vs. Empty String David Wheeler