Script installeren

Gestart doorWiitse18 reacties42 weergaven

19 berichten · pagina 1 van 2

Wiitse

Lid · Topicstarter

Berichten
6.722
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik probeer een radio script te installeren, maar het lukt niet!
Het enige wat ik moest doen was een database maken en de gegevens invullen en de confic.php veranderen.
Ik krijg nu dit.

Index.php:

[COLOR= #0000BB]<?php[/COLOR]

[URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]config.php[/COLOR][COLOR= #007700];[/COLOR]

[COLOR= #0000BB]$result[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM tabel"[/COLOR][COLOR= #007700]);[/COLOR]

[COLOR= #0000BB]$i[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700];[/COLOR]

[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<table width="500" border="0"><tr>[/COLOR][COLOR= #007700];[/COLOR]

[URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_array"]mysql_fetch_array[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$result[/COLOR][COLOR= #007700]))

{[/COLOR]

[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]



    <td  background="back.png"  width="200"><a href="?id=[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"><img src="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]image[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]" border="0" width="200" height="75" style="opacity:0.9;filter:alpha(opacity=90)"></a></td>



[/COLOR][COLOR= #007700];[/COLOR]

[COLOR= #0000BB]$i[/COLOR][COLOR= #007700]++;[/COLOR]

[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$i[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #0000BB]4[/COLOR][COLOR= #007700]) {[/COLOR]

[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<tr>[/COLOR][COLOR= #007700];[/COLOR]

[COLOR= #0000BB]$i[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700];

  }



}[/COLOR]

[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000] </tr></tr>[/COLOR][COLOR= #007700];[/COLOR]

  [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]</table>[/COLOR][COLOR= #007700];[/COLOR]

  [COLOR= #0000BB]$id[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]];[/COLOR]

  [COLOR= #0000BB]$table[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM tabel WHERE id=$id"[/COLOR][COLOR= #007700]);[/COLOR]

[URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_array"]mysql_fetch_array[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$table[/COLOR][COLOR= #007700])) {[/COLOR]

  [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]

<OBJECT ID="MediaPlayer" width="250" height="59" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" standby="" type="application/x-ms-wmp"><PARAM NAME="URL" VALUE="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]stream[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"><param name="windowlessvideo" value="true" /><PARAM NAME="AutoStart" VALUE="true"><PARAM name="uiMode" value="full"><EMBED type="application/x-mplayer2" SRC="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]stream[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]" id="MediaPlayer" width="300" height="59" Autostart="1" ShowControls="1" ShowDisplay="1" ShowStatusBar="1"></OBJECT></div><div class="pm pmo"></div></div>



  [/COLOR][COLOR= #007700];

  }[/COLOR]

?>
0
Erik

Lid

Berichten
7.109
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
De host is (bijna) altijd localhost.
0
Wiitse

Lid · Topicstarter

Berichten
6.722
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Kijk nog eens? Er zijn nu minder fouten.
0
Berichten
3.788
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
de query, die in de fatch_assoc staat klopt niet!
0
Wiitse

Lid · Topicstarter

Berichten
6.722
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
En wat kopt er dan niet aan? Hier heb ik niet veel aan. (Als je me wilt helpen maar dan een stuk script moet zien stuur maar een pb)
0
Berichten
5.957
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Als je het script niet post kunnen wij alleen maar zeggen wat het tegen ons zegt. emo
0
Berichten
3.788
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
als je inderdaad de query ff post kunnen we er naar kijken!
0
Wiitse

Lid · Topicstarter

Berichten
6.722
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik heb nu de hele index pagina in de startpost gezet.
0
Berichten
18.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Er staat waarschijnlijk nog niks in de tabel tabel emo
0
Wiitse

Lid · Topicstarter

Berichten
6.722
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Jawel hoor! (Ik ben niet dom hoor).
0
Berichten
6.144
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Pff, lijn een goed uit..
0
Berichten
3.000
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hij heeft het script gekocht van Daiman
0
Berichten
3.788
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Wat staat er in de tabel `tabel`?
0
Berichten
18.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Wumbowip schreef:
Jawel hoor!
En dat kan ik vanaf hier ruiken? emo
Wumbowip schreef:
Ik ben niet dom hoor
shutup
0
Wiitse

Lid · Topicstarter

Berichten
6.722
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik heb de tabel gewoon geupload dus ik kan niks fout hebben gedaan met mysql want dat heb ik goed.
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