Hi All,
I have recently been trying to use .nl2br function. I have it working with the $REQUEST statament, for example....
comment = '".nl2br($REQUEST[comment])."',
My problem is trying to integrate it using sprintf. for example......
$insertSQL = sprintf("INSERT INTO comments (reg, name, email, comments) VALUES (%s, %s, %s, %s)",
GetSQLValueString($POST['reg'], "int"),
GetSQLValueString($POST['name'], "text"),
GetSQLValueString($POST['email'], "text"),
GetSQLValueString($POST['comments'], "text"));
Not sure where it would go in this statement....
Any ideas??
Thanks in advance!