tsieber Posted August 22, 2010 Share Posted August 22, 2010 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] . "> "; ?> Quote Link to comment https://forums.phpfreaks.com/topic/211450-image-properties/ Share on other sites More sharing options...
Alex Posted August 22, 2010 Share Posted August 22, 2010 You're missing the point of PHP. This is something for CSS. Quote Link to comment https://forums.phpfreaks.com/topic/211450-image-properties/#findComment-1102471 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.