NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Need Help Getting Image on Top of Page

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 05-10-2006, 02:16 PM THREAD STARTER               #1 (permalink)
NamePros Regular
 
bigboss's Avatar
Join Date: May 2003
Location: On a Farm in Wisconsin
Posts: 484
bigboss has a spectacular aura aboutbigboss has a spectacular aura about
 



Need Help Getting Image on Top of Page


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

????: NamePros.com http://www.namepros.com/programming/195987-need-help-getting-image-top-page.html
Thanks For The Help

John
bigboss is offline  
Old 05-10-2006, 03:02 PM   #2 (permalink)
Senior Member
 
Shorty's Avatar
Join Date: Sep 2005
Location: England
Posts: 1,034
Shorty is just really niceShorty is just really niceShorty is just really niceShorty is just really nice
 



echo "<$top>";
Shorty is offline  
Old 05-10-2006, 03:52 PM THREAD STARTER               #3 (permalink)
NamePros Regular
 
bigboss's Avatar
Join Date: May 2003
Location: On a Farm in Wisconsin
Posts: 484
bigboss has a spectacular aura aboutbigboss has a spectacular aura about
 



Originally Posted by Shorty
echo "<$top>";
Well I tried that and got an error
????: NamePros.com http://www.namepros.com/showthread.php?t=195987

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

How do I direct it to my image?

Thanks John
bigboss is offline  
Old 05-10-2006, 04:07 PM   #4 (permalink)
Senior Member
 
Shorty's Avatar
Join Date: Sep 2005
Location: England
Posts: 1,034
Shorty is just really niceShorty is just really niceShorty is just really niceShorty is just really nice
 



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>';
?
Shorty is offline  
Old 05-10-2006, 05:26 PM   #5 (permalink)
NamePros Member
Join Date: Mar 2006
Location: (US) Missouri
Posts: 70
Hobnob is on a distinguished road
 



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:
????: NamePros.com http://www.namepros.com/showthread.php?t=195987


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

change the <p align="center"> and the </p> to just < and >
Last edited by Hobnob; 05-10-2006 at 05:29 PM.
Hobnob is offline  
Old 05-10-2006, 05:46 PM   #6 (permalink)
JYM
Senior Member
 
JYM's Avatar
Join Date: Sep 2005
Location: San Diego, California
Posts: 1,078
JYM is a glorious beacon of lightJYM is a glorious beacon of lightJYM is a glorious beacon of lightJYM is a glorious beacon of lightJYM is a glorious beacon of light
 



What if you did this:

<div style="position: absolute; top: 0;">$top</div>
__________________
Ipzy.com - Free Proxy to visit Myspace/Facebook, Tech News, and more!
Onlineness.com - Free Proxy
FOR SALE: support.im | tradepile.com
JYM is offline  
Old 05-10-2006, 05:51 PM   #7 (permalink)
Dan
Buy my domains.
 
Dan's Avatar
Join Date: Feb 2006
Posts: 2,796
Dan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant future
 


Autism Autism Autism Autism Autism Autism Autism
Just make it:

$top = "<img src='images/5dmlogo.jpg'>";
Dan is offline  
Old 05-10-2006, 05:59 PM   #8 (permalink)
NamePros Member
Join Date: Mar 2006
Location: (US) Missouri
Posts: 70
Hobnob is on a distinguished road
 



Originally Posted by JYM
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.
Hobnob is offline  
Old 05-10-2006, 06:10 PM   #9 (permalink)
Dan
Buy my domains.
 
Dan's Avatar
Join Date: Feb 2006
Posts: 2,796
Dan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant future
 


Autism Autism Autism Autism Autism Autism Autism
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.
Dan is offline  
Old 05-10-2006, 08:27 PM THREAD STARTER               #10 (permalink)
NamePros Regular
 
bigboss's Avatar
Join Date: May 2003
Location: On a Farm in Wisconsin
Posts: 484
bigboss has a spectacular aura aboutbigboss has a spectacular aura about
 



Originally Posted by Dan Friedman
Just make it:

$top = "<img src='images/5dmlogo.jpg'>";
Thanks Dan this one worked

John
bigboss is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 08:14 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger