Jump to content

[SOLVED] Problem with backslash


rondog

Recommended Posts

I am echoing out a path of an image from my db. My PHP looks like this

 

<?php
$build .= "<td rowspan=\"2\"><img src=\"thumbnails\$row[thumbnail]\" title=\"$row[name]\" /></td>";
?>

 

it outputs in the html <img src="thumbnails$row[thumbnail]" /> where I need it to say "thumbnails\thumb1.jpg" or w/e it may be.

 

I tried playing around with addslashes but the closest I got was thumbnails\'

 

What should I do?

Link to comment
https://forums.phpfreaks.com/topic/87110-solved-problem-with-backslash/
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.