osC Posted January 15, 2011 Report Share Posted January 15, 2011 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 Quote Link to comment Share on other sites More sharing options...
rATRIJS Posted January 15, 2011 Report Share Posted January 15, 2011 o_O Padomā kur tieši ir jāliek CSS. Quote Link to comment Share on other sites More sharing options...
osC Posted January 15, 2011 Author Report Share Posted January 15, 2011 tad lūdzu izskaidro. :) Quote Link to comment Share on other sites More sharing options...
osC Posted January 15, 2011 Author Report Share Posted January 15, 2011 Nu labi. Tagad ieliku augšā. Tagad vismaz nerāda errorus. Bet rāda CSS vienkārši kā kodu. Quote Link to comment Share on other sites More sharing options...
osC Posted January 15, 2011 Author Report Share Posted January 15, 2011 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] Quote Link to comment Share on other sites More sharing options...
sandis_m Posted January 15, 2011 Report Share Posted January 15, 2011 (facepalm) Quote Link to comment Share on other sites More sharing options...
osC Posted January 15, 2011 Author Report Share Posted January 15, 2011 haha. Esmu 0 ar php. :) Quote Link to comment Share on other sites More sharing options...
sandis_m Posted January 15, 2011 Report Share Posted January 15, 2011 (edited) <style type="text/css"> #ve { margin-top: 50px; margin-left: 50px } </style> <div id="ve"> <?php //php kods ?> </div> Edited January 15, 2011 by who_i_am Quote Link to comment Share on other sites More sharing options...
osC Posted January 15, 2011 Author Report Share Posted January 15, 2011 Paldies. Quote Link to comment Share on other sites More sharing options...
rebuilder Posted January 15, 2011 Report Share Posted January 15, 2011 haha. Esmu 0 ar php. :) Izskatās, ka arī html un css esi 0... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.