Hi all,
Bit of an amatuer question i think but help is needed all the same!
I need to addslashes() to the text box array that is posted on my page but not sure where is should go within my code. I have the following code:
if (isset($_POST['textarea']) && is_array($_POST['textarea'])) {
foreach ($_POST['textarea'] as $textid => $textarea) {
$q= "update mytable set textfield= '$textarea'";
$r= mysql_query($q);
}
}
If someone could amend the code or highlight where I need to apply addslashes() i would be grateful.
Thank u.