Re: [PHP-DB] RE: escape chars continued

2004-03-22 Thread John W. Holmes
From: "Brock Jimmy D Contr DODHSR5" <[EMAIL PROTECTED]> > When you want to display this value from the database onto your webpage use stripslashes > > stripslashes($row['q']; // this will remove the backslash that was inserted from addslashes You don't need to use stripslashes on the data pulled

[PHP-DB] RE: escape chars continued

2004-03-22 Thread Brock Jimmy D Contr DODHSR5
In your sample code the value is being truncated because size="2" -- so only 2 characters are being assigned to $_POST['Q'] Addslahses should work... Based on your example here is how (I changed the size to 50: And my user enters:2 " copper tubing $q = addslashes($_POST['Q']; // new valu