Jump to content
php.lv forumi

Vēlējos pārvietot objektu


osC

Recommended Posts

Sveiki,

Lieta tāda.

Vēlos pārvietot banneri ar div id un css palīdzību. Bet kad paskatos kas man ir sanācis, parāda erroru.

[b]Parse error[/b]:  syntax error, unexpected ':' in [b]/home/escdator/public_html/lietotidatori.lv/includes/boxes/side_banners.php[/b] on line [b]40[/b]

Pārbaudīju kodu un tāpat liekas ka viss ir kārtībā.

Tātad man pilns fails:

<div id="ve"
<?php


$image = array('image0' => 'index.php',);



$ext = '.jpg';


$info_box_contents = array();
new infoBoxHeading($info_box_contents, false, false);

$side_banner_loop = '<table width="30%" cellspacing=0 cellpadding=0 border=0 align="right" />' . "\n";
foreach($image as $side_banner_images => $product_info_id) {
$side_banner_loop .= "<tr>\n<td>" . '<a href="' . 'http://www.escdatori.lv/'
. $product_info_id . '"> <img src="' . 'images' . '/' . 'side_banners/'  
. $side_banner_images . $ext . '" width="' . W . '" height="' . H . '">' . "</img></a><br></td>\n</tr>\n";
}
$side_banner_loop .= '</table>';

$info_box_contents = array();
$info_box_contents[] = array('text' => $side_banner_loop);

new infoBox($info_box_contents);	

#ve ("Content-type: text/css");
{
margin-top: 50px;
margin-left: 50px
}
?>
</div>

 

Zinu ka manā kodā ir liels haoss.. Un pat domāju ka tur nekas nav pareizi tajā kodā. :D

Link to comment
Share on other sites

Ieliku to visu kodu <?php> tagos.

Tagad atkal tā pati kļūda.

[b]Parse error[/b]:  syntax error, unexpected ':' in [b]/home/escdator/public_html/lietotidatori.lv/includes/boxes/side_banners.php[/b] on line [b]4[/b]

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.

Loading...
×
×
  • Create New...