Jump to content

[SOLVED] slashes problem


shadiadiph

Recommended Posts

mm seems to be working from the email side now send the email without the \'s but when i try to insert says jame's into my database it is saying it will not allow the insert because of the 's ?? I am inserting into my database as well as emailing the data.

 


for example
$client       = stripslashes($_POST["client"]);


              $insert = " insert into tblmaildetails (type, sort, office, client, emailclient, subject, message, seen, sent, senttime, idkey) values ('email.php', 'Email', '$office', '$client', '$emailclient', '$subj', '$message', 'No', now(), now(), '$random')";
		$DB_site->query($insert);

mm solved the problem found that the problem was i was using strtolower and ucwords and stripslashes in the wrong order i was puting stripslashes first so everytime i asked it to do something it was adding another / to it. So I now hav stripslashes slashes last in the chain but mysql_real_escape_string( also then adds another / before adding it to the database so where i have it displayed after this i have to strip it again.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.