Jump to content

Complete newbie/donkey...


Guest racadillo

Recommended Posts

Guest racadillo

OK I know, I'm stupid but I'm not familiar with php at all and struggling with adding a box to my shop.

I'm adding a box using the add box download

I have the code in the subfooter to show box1.php under the shopping cart in the right column. This is the content of my php doc for box1

<?php



if(!function_exists("sb")){



	exit;



}

// start border

sb("140","Advertisement",$colour_1,$bg_colour);



echo"

<a href="http://www.micfo.com/cgi-bin/affiliates/clickthru.cgi?id=racadillo">

<img src="http://www.micfo.com/images/banners/1.gif" border=0></a>

";



// end border

eb($bg_colour,$colour_1);

?>

But it won't display and I get the following error message on the page:

Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /home/racadill/public_html/bfcart/box1.php on line 12

What's going wrong? ('cept me! :D )

Cheers for any help!

Sara

Link to comment
Share on other sites

Guest racadillo

Thanks ... that made me think.... no need for any of that php code in there at all really... it was only for an ad banner...

I just made box1.php an html graphic link and that works fine :D

Like I said... I'm a donkey :D

Thanks for your help!!

Sara

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...