RE: [PHP-DB] mysql data truncation does not cause an error to be thrown
| From: | Instruct ICC | Date: | Thu, 08 Nov 2007 15:45:07 +0000 |
| Subject: | RE: [PHP-DB] mysql data truncation does not cause an error to be thrown | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-44316@lists.php.net to get a copy of this message | ||
> Using mysql_query if i try to force more data than a field can have the
> data is truncated yet no error is throw at all.
> Is there a way round this ?
> Cheers
>
> Andy
This isn't exactly what you want to hear, but how about validating your input before submitting
a query?
_________________________________________________________________
Boo! Scare away worms, viruses and so much more! Try Windows Live OneCare!
http://onecare.live.com/standard/en-us/purchase/trial.aspx?s_cid=wl_hotmailnews