-3
I’m trying to put a background image by css using PHP, which means the image I want to put in the background is inside the database. I open the php tags inside the background URL
background-image: url(?php echo $top['ft_feature']; ?>);
The code I use for the bank to find the image is this:
$consulta3 = "SELECT * FROM feature"; $con3 = $mysqli->query($consulta3) or die (@mysqli_error());
And the code I put in
background: url()like I said is this:
echo $top['ft_feature'];
I was wondering if there’s any way to put it as background using the image I selected from the bank.
When vc says css, vc means the css file or a style block within a php page?
– tvdias