Unstoppable Domains โ€” Expired Auctions

Need Help Getting Image on Top of Page

Spaceship Spaceship
Watch

bigboss

Established Member
Impact
3
I tried to get an image on top of the page using $top in my config.php

Code:
///Header HTML
         $top ="img src=images/5dmlogo.jpg";

How do I direct the $top to my image

I am super new to php

The site I am working on is www.rizma.com/5dm

Thanks For The Help

John :'(
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
echo "<$top>";
 
0
•••
Shorty said:
echo "<$top>";

Well I tried that and got an error :td:

I need the line in red $top ="img src=images/5dmlogo.jpg";

How do I direct it to my image?

Thanks John :-/
 
0
•••
Is there any particular reason you have to do it with a variable?

Can't you just do:
Code:
echo '<img src=images/5dmlogo.jpg>';
?
 
0
•••
I fail to see why:

<<?=$top;?>>

does not work.. Paste the code you have that is trying to call the picture

Here, I will show you an example that works, maybe it will help you.

Code:
<? $teehee = "img src=/odditysoftware/scripts/us-apartments-script/images/3.gif"; ?>
<<?=$teehee;?>>

oh, i looked at your source you have:


<p align="center">img src=images/5dmlogo.jpg</p>

change the <p align="center"> and the </p> to just < and >
 
Last edited:
0
•••
What if you did this:

<div style="position: absolute; top: 0;">$top</div>
 
0
•••
Just make it:

$top = "<img src='images/5dmlogo.jpg'>";
 
0
•••
JYM said:
What if you did this:

<div style="position: absolute; top: 0;">$top</div>

because an image is enclosed in a "<" and a ">" tag, he does not have them in his code, he is just echoing the source.
 
0
•••
Hobnob, your sentence makes no sense but I know what you are trying to say.

All he has is > img src=someimage < but there is no image tag because he doesn't have a < and a >

All he has to do is add those.
 
0
•••
Dan Friedman said:
Just make it:

$top = "<img src='images/5dmlogo.jpg'>";

Thanks Dan this one worked

John :bingo:
 
0
•••
Domain Recover
NameMaxi - Your Domain Has Buyers
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back