Jump to content

Image properties


tsieber

Recommended Posts

I am working on a header for a website and the code below pulls the file location for the image. I am wondering how (if possible) I could apply the repeat-x tag to the image. I know it can be done with html/css but I'm not sure how to go about it in PHP. Thanks in advance.

 

 

<?php

include 'db.php';

$result=mysql_query("SELECT location FROM header WHERE page='home'");

$row = mysql_fetch_row($result);


    echo "<img src=images/".$row[0] . "> ";
    
?>

Link to comment
https://forums.phpfreaks.com/topic/211450-image-properties/
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.