Jump to content

Php image help


mbudd85

Recommended Posts

Ok, to start off I am pretty much a noob to Php, I can set it up but I cannot really code it at all, though I would like to learn.  My problem is I am trying to add some sponsors to my site but i'm not sure how to code the script to add them in.  Any help would be GREATLY appreciated.  :D

 

}
echo"
</td>
</tr>
</table>";
echo"<div class='sidebar-con4'><div class='sidebar-title4'><div class='sidebar-title-text'>Site Sponsor</div></div>
<table width='100%' align='center' border='0' cellspacing='0'>
<tr><td background='$config[cellbg]' align='center'><script type=\"text/javascript\"><!--
google_ad_client = \"pub-5592824295977689\";
/* 728x90, created 05/02/09 */
google_ad_slot = \"2665967246\";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type=\"text/javascript\"
src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">
</script></td></tr>
</table></div>";
if($index == yes){
echo"<div class='sidebar-con4'>
<table width='100%' align='center' border='0' cellspacing='0'>
<tr><td background='$config[cellbg]' align='center'>
       <div id='emaf'>
		  <a href='http://www.adobe.com/go/getflashplayer'>
			<img src='http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='Get Adobe Flash player' />
		  </a>
	  </div></td></tr>
</table></div>";
}
?>

 

and the other is:

echo"
<div class='sidebar-con'><div class='sidebar-title'><div class='sidebar-title-text'>Sponsor</div></div>
<table width='100%' align='center' border='0' cellspacing='0'>
<tr><td><object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='290' height='210' title='misc'>
  <param name='movie' value='./misc.swf' />
  <param name='quality' value='high' />
  <embed src='./misc.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='290' height='210'></embed>
</object></td>
</tr>";
echo"
</table></div>";

 

The second one is probably going to be a image rather then a swf. 

 

Thank you so much for anyone who can help me out.

Link to comment
https://forums.phpfreaks.com/topic/194460-php-image-help/
Share on other sites

Call me crazy but I think a search for "html tutorial" isn't going to help me much.

 

Sorry bud, thats exactly your problem. If you're wanting to simply place an ad on your site, you'll need to use html. either the <img> tag for an image... or a <script> tag, for importing google ads, etc, to the page. If its google ads, its literally a matter of copying and pasting.

Link to comment
https://forums.phpfreaks.com/topic/194460-php-image-help/#findComment-1023313
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.