php doet raar?!

Gestart doorAdmir4 reacties27 weergaven

5 berichten · pagina 1 van 1

Admir

Lid · Topicstarter

Berichten
1.950
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hey,
Bij mij op site straat-power.nl Onder dat plaatje Beats. Kun je gewoon de link aan klikken
Maar als je hier na toe gaat http://www.straat-power.nl/index.php?p=letter&letter=m
Krijg ik error,
En dit is die line

") or die(mysql_error());


Kan iemand me helpen?

Het hele beat script is dit:

[COLOR= #0000BB]<?php

                        $beat_select[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"

                       

                            SELECT

                               id,artiesten

                            FROM

                                beaters

                            ORDER BY

                                artiesten ASC

                       

                        "[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]

                       

                        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700](![/COLOR][URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$beat_select[/COLOR][COLOR= #007700]))

                        {[/COLOR]

                           

                            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Er zijn nog geen beatpacks.<br />"[/COLOR][COLOR= #007700];

                           

                        }[/COLOR]
                  [URL="http://www.php.net/else"]else[/URL]

                        [COLOR= #007700]{[/COLOR]

                       

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

                            [URL="http://www.php.net/while"]while[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$show[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$beat_select[/COLOR][COLOR= #007700]))

                            {[/COLOR]

                               

[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]":: <a href="/index.php?p=beat&beat="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$show[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"">"[/COLOR][COLOR= #007700].[/COLOR]htmlentities[COLOR= #007700]([/COLOR][COLOR= #0000BB]$show[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]artiesten[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]"</a><br />"[/COLOR][COLOR= #007700];

 

 

                               

                            }[/COLOR]

                       

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

                       

                        }[/COLOR]

                        ?>
0
Rik

Lid

Berichten
18.393
Reputatie
0
Punten
0,04
Lid sinds
Laatst gezien
Je hebt geen connectie met de database yummie
0
Admir

Lid · Topicstarter

Berichten
1.950
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Rik schreef:
Je hebt geen connectie met de database yummie
Hoe kan dat? Terwijl me artiesten script het gwn doet
0
Berichten
18.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
config includen en het zou opgelost moeten zijn
0
Admir

Lid · Topicstarter

Berichten
1.950
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
thanks gefixt.
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