Image Links as Variable
Posted: Wed Aug 16, 2006 3:21 pm
feyd | Please use
I am just wondering why this doesn't work and if anybody can point me in the right direction.
Thanks in advance!
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Is it possible to use a http address as a variable?
I am entirely new to PHP and I am wanting to make it a bit easier to update information.Code: Select all
<?php
$titledescription =
"http://d3zign.co.uk/desert eagle.jpg";
?>
<html>
<head>
<style>
body {
background-color: #fff;
color: #000;
font-family: "Verdana", serif;
font-size: 11px;
text-align: center;
}
.header {
height: auto;
width: 550px;
background-color: #ffcc00;
color: #000;
font-weight: bold;
text-transform: uppercase;
font-style: italic;
border: 1px solid #000;
text-align: center;
margin: 0px auto;
}
.section {
height: auto;
width: 546px;
margin: 5px;
border: 1px dashed #000;
margin: 0px auto;
border-top: 0px;
text-align: left;
padding: 2px;
}
</style>
</head>
<div class="header">XBOX 360 // GAMES //
NBA LIVE '06</div>
<div class="section">FOr SAle <img
src="<?php require("$titledescription");
?>"/></div>Thanks in advance!
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]