Rating script Geeft error

Gestart doorAdmir4 reacties29 weergaven

5 berichten · pagina 1 van 1

Admir

Lid · Topicstarter

Berichten
1.950
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
hey,

Ik ben bezig met Rating script maar hij doet een beetje vaag.
Ik zit het script in echo ;

<div class="floatleft">
        <div id="rating_[COLOR= #0000BB]<?[/COLOR]php [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR]id[COLOR= #007700]];[/COLOR] ?>">
            <span class="star_1"><img src="star_blank.png" alt="" [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$rating[/COLOR] [COLOR= #007700]>[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700]) {[/COLOR] [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]"class=hover"[/COLOR][COLOR= #007700]; }[/COLOR] ?> /></span>
            <span class="star_2"><img src="star_blank.png" alt="" [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$rating[/COLOR] [COLOR= #007700]>[/COLOR] [COLOR= #0000BB]1.5[/COLOR][COLOR= #007700]) {[/COLOR] [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]"class=hover"[/COLOR][COLOR= #007700]; }[/COLOR] ?> /></span>
            <span class="star_3"><img src="star_blank.png" alt="" [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$rating[/COLOR] [COLOR= #007700]>[/COLOR] [COLOR= #0000BB]2.5[/COLOR][COLOR= #007700]) {[/COLOR] [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]"class=hover"[/COLOR][COLOR= #007700]; }[/COLOR] ?> /></span>
            <span class="star_4"><img src="star_blank.png" alt="" [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$rating[/COLOR] [COLOR= #007700]>[/COLOR] [COLOR= #0000BB]3.5[/COLOR][COLOR= #007700]) {[/COLOR] [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]"class=hover"[/COLOR][COLOR= #007700]; }[/COLOR] ?> /></span>
            <span class="star_5"><img src="star_blank.png" alt="" [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$rating[/COLOR] [COLOR= #007700]>[/COLOR] [COLOR= #0000BB]4.5[/COLOR][COLOR= #007700]) {[/COLOR] [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]"class=hover"[/COLOR][COLOR= #007700]; }[/COLOR] ?> /></span>
        </div>
    </div>
    <div class="star_rating">
        (Rated <strong>[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$rating[/COLOR][COLOR= #007700];[/COLOR] ?></strong> Stars)
    </div>

    <div class="clearleft">&nbsp;</div>


Dat stuk zet ik in echo DUS HIER; maar hij geeft deze error aan:
Quote:
Parse error: syntax error, unexpected T_STRING, expecting , or ; in /home/user4003/domains/straat-power.nl/public_html/pages/rap.php on line 52.

En dit is dat line 52:

<span class="star_1"><img src="star_blank.png" alt="" [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$rating[/COLOR] [COLOR= #007700]>[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700]) {[/COLOR] [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]"class=hover"[/COLOR][COLOR= #007700]; }[/COLOR] ?> /></span>
0
Berichten
18.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Mijn PHP IDE geeft daar geen error
0
Admir

Lid · Topicstarter

Berichten
1.950
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Luukvdo schreef:
Mijn PHP IDE geeft daar geen error
Hoe kijk jij dat eigelijk?
0
Rik

Lid

Berichten
18.393
Reputatie
0
Punten
0,04
Lid sinds
Laatst gezien
Volgens mij kan die punt ( 1 >> . << 5 ) niet, dus moet je dit doen: 1.5. Niet zeker.
0
Admir

Lid · Topicstarter

Berichten
1.950
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Rik schreef:
Volgens mij kan die punt ( 1 >> . << 5 ) niet, dus moet je dit doen: 1.5. Niet zeker.
Doet het goed, http://www.straat-power.nl/5star.php Heb al iemand gevonden die mij verder kan helpen dus dit topic kan dicht.
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren