Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.