For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > October 2007 > RE: [PHP-DB] php maximum characters in text field









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author RE: [PHP-DB] php maximum characters in text field
Instruct ICC

2007-10-15, 6:59 pm


> I am starting to believe it is NOT the character length that is causing t=

he problem. We have received other orders with more in it than that, and th=
ey came in ok. I think there may be something in the input that php does no=
t like. I've been searching for code that will "clean up" input, possibly p=
reg_replace?

Was the order received, but the text was shorter than expected?
Or was the order not "received" at all?

Check your mysql query log. It may show failed queries where bad character=
s made the query fail, perhaps using ' or "?
Use mysql_real_escape_string.
________________________________________
_________________________
Climb to the top of the charts!=A0 Play Star Shuffle:=A0 the word scramble =
challenge with star power.
http://club.live.com/star_shuffle.a...ailtextlink_oc=
t=
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com