Jump to content

[SOLVED] Were did the slashes go?


mike12255

Recommended Posts

I got the following code:

 

 

if (isset($_POST['submit'])){
$pic = $_FILES['imagefile']['name'];
$wantedname = $_POST['name'];

$target_path = "images\cat\images";

$target_path = $target_path . basename( $_FILES['file']['name']); 

$name = basename( $_FILES['file']['name']);

 

So im putting $target_path into the database. The picture name is So cute.jpg when i look at in the database it shows this:

 

 

imagescatimagesso cute.jpg

 

Theres no slashes in it but there was before it went into the database. Anyone know why?

Link to comment
https://forums.phpfreaks.com/topic/161758-solved-were-did-the-slashes-go/
Share on other sites

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.