09. juni 2003 - 10:24
Der er
5 kommentarer og 1 løsning
PHP oh <a href="
Er der ikke en der lige vil rette den her kode.. Jeg tror først fejlene begynder at komme ved midten. <?php if(($wid == 1) && ($authed == TRUE)) print('<a href="'.$matches.'&pw=a5175faf6dc24adc7eda4f9cfc721b47">'.toimg('Matches', 1).'</a>'); print(toimg(' :: ', 1)); print('<a href="'.$site_next.'&pw=a5175faf6dc24adc7eda4f9cfc721b47">'.toimg('Next Match >>', 1).'</a>'); if($wid == $count) { print('<a href="'.$site_previous.'&pw=a5175faf6dc24adc7eda4f9cfc721b47">'.toimg('<< Previous Match', 1).'</a>')"; print(toimg(' :: ', 1)); print('<a href="'.$matches.">'.toimg('Matches', 1).'</a>'); } else { print('<a href="'$site_previous'">'.toimg('<< Previous Match', 1).'</a>'; print(toimg(' :: ', 1); print('<a href='$matches'>".toimg('Matches', 1)."</a>"; print(toimg(' :: ', 1); print('<a href='$site_next'>".toimg('Next Match >>', 1)."</a>"; } ?>
Annonceindlæg fra Hitachi
”Forskellighed gør os stærkere!”
Diversitet er ikke kun buzzwords og politisk korrekthed, men et spørgsmål om at alle føler sig godt tilpas og kan yde deres bedste.
31. januar 2025
Prøv dette: <?php if(($wid == 1) && ($authed == TRUE)) print('<a href="'.$matches.'&pw=a5175faf6dc24adc7eda4f9cfc721b47">'.toimg('Matches', 1).'</a>'); print(toimg(' :: ', 1)); print('<a href="'.$site_next.'&pw=a5175faf6dc24adc7eda4f9cfc721b47">'.toimg('Next Match >>', 1).'</a>'); if($wid == $count) { print('<a href='.$site_previous.'&pw=a5175faf6dc24adc7eda4f9cfc721b47>'.toimg('<< Previous Match', 1).'</a>'); print(toimg(' :: ', 1)); print('<a href='.$matches.'>'.toimg('Matches', 1).'</a>'); } else { print('<a href='.$site_previous.'>'.toimg('<< Previous Match', 1).'</a>'); print(toimg(' :: ', 1)); print('<a href='.$matches.'>'.toimg('Matches', 1).'</a>'); print(toimg(' :: ', 1)); print('<a href='.$site_next.'>'.toimg('Next Match >>', 1).'</a>'); } ?>
Mange tak.. Det virker =) Ved du hvor jeg kan finde lidt hjælp til NETOP det her.. Kan aldrig finde ud af det :D
Hvad er fejlen her så?!? <?php if(($wid == 1) && ($authed == TRUE)) { print('<a href="'.$matches.'&pw=a5175faf6dc24adc7eda4f9cfc721b47">'.toimg('Matches', 1).'</a>'); print(toimg(' :: ', 1)); print('<a href="'.$site_next.'&pw=a5175faf6dc24adc7eda4f9cfc721b47">'.toimg('Next Match >>', 1).'</a>'); } elseif(($wid == $count && ($authed == TRUE)) { print('<a href='.$site_previous.'&pw=a5175faf6dc24adc7eda4f9cfc721b47>'.toimg('<< Previous Match', 1).'</a>'); print(toimg(' :: ', 1)); print('<a href='.$matches.'>'.toimg('Matches', 1).'</a>'); } else { print('<a href='.$site_previous.'&pw=a5175faf6dc24adc7eda4f9cfc721b47>'.toimg('<< Previous Match', 1).'</a>'); print(toimg(' :: ', 1)); print('<a href='.$matches.'>'.toimg('Matches', 1).'</a>'); print(toimg(' :: ', 1)); print('<a href="'.$site_next.'&pw=a5175faf6dc24adc7eda4f9cfc721b47">'.toimg('Next Match >>', 1).'</a>'); } ?>
TRUE)) { du har sådan en efter { er det meningen?
Sådan måske: <?php if(($wid == 1) && ($authed == TRUE)) { print('<a href="'.$matches.'&pw=a5175faf6dc24adc7eda4f9cfc721b47">'.toimg('Matches', 1).'</a>'); print(toimg(' :: ', 1)); print('<a href="'.$site_next.'&pw=a5175faf6dc24adc7eda4f9cfc721b47">'.toimg('Next Match >>', 1).'</a>'); } elseif(($wid == $count && ($authed == TRUE))) { print('<a href='.$site_previous.'&pw=a5175faf6dc24adc7eda4f9cfc721b47>'.toimg('<< Previous Match', 1).'</a>'); print(toimg(' :: ', 1)); print('<a href='.$matches.'>'.toimg('Matches', 1).'</a>'); } else { print('<a href='.$site_previous.'&pw=a5175faf6dc24adc7eda4f9cfc721b47>'.toimg('<< Previous Match', 1).'</a>'); print(toimg(' :: ', 1)); print('<a href='.$matches.'>'.toimg('Matches', 1).'</a>'); print(toimg(' :: ', 1)); print('<a href="'.$site_next.'&pw=a5175faf6dc24adc7eda4f9cfc721b47">'.toimg('Next Match >>', 1).'</a>'); } ?>
Vi tilbyder markedets bedste kurser inden for webudvikling