ik heb een error met een hoge comma

Overzicht Reageren

Sponsored by: Vacatures door Monsterboard

Ventilatiesysteem Productontwikkelaar HBO WO Verwa

Samengevat: Zij bieden flexibele ventilatiematerialen, geluidsdempers, rookgasafvoer producten en industrieslangen. Ben jij een technisch productontwikkelaar? Heb jij ervaring met het ontwikkelen van nieuwe producten? Vaste baan: Technisch Productontwikkelaar HBO WO €3.000 - €4.000 Zij bieden een variëteit aan flexibele ventilatiematerialen, geluiddempers, rookgasafvoer producten, industrieslangen en ventilatieslangen voor de scheepsbouw. Met slimme en innovatieve materialen zorgen wij voor een gezonde en frisse leefomgeving. Deze werkgever is een organisatie die volop in ontwikkeling is met hardwerkende collega's. Dit geeft goede ontwikkelingsmogelijkheden. De branche van dit bedrijf is Techniek en Engineering. Functie: Voor de vacature als Technisch Productontwikkelaar Ede Gld HBO WO ga

Bekijk vacature »

Chieljan sportel

chieljan sportel

14/03/2008 23:47:00
Quote Anchor link
Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
3
4
5
6
<?php
include 'config.php';
require('_drawrating.php');

$string = $_SERVER['QUERY_STRING'];
?>

<html><head>
<script language="JavaScript">
function newWindow(mypage,myname,w,h,features) {
if(screen.width){
var winl = (screen.width-w)/2;
var wint = (screen.height-h)/2;
}else{winl = 0;wint =0;}
if (winl < 0) winl = 0;
if (wint < 0) wint = 0;
var settings = 'height=' + h + ',';
settings += 'width=' + w + ',';
settings += 'top=' + wint + ',';
settings += 'left=' + winl + ',';
settings += features;
win = window.open(mypage,myname,settings);
win.window.focus();
}
</script>
<script type="text/javascript" language="javascript" src="js/behavior.js"></script>
<script type="text/javascript" language="javascript" src="js/rating.js"></script>
</head>
Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
<?php
$_GET
['id'] = mysql_real_escape_string($_GET['id']);

$tracks_select = mysql_query("

    SELECT
    *
    FROM
        clips
    WHERE
        id = '"
.$_GET['id']."'
    LIMIT 1

"
) or die(mysql_error());

if(!mysql_num_rows($tracks_select))
{


    echo "
<tr>
<td class='capmain'>
<p>Oehhpss</p>
</td>
</tr>
<tr>
<td class='main-body'>
Deze track bestaat niet."
;

}

else
{

    while ($show = mysql_fetch_assoc($tracks_select))
    {

        $show['artiest'] = stripslashes($show['artiest']);
        $show['artiest'] = htmlentities($show['artiest']);
        
        $show['titel'] = stripslashes($show['titel']);
        $show['titel'] = htmlentities($show['titel']);
        
        
        mysql_query("
        
            UPDATE
                clips
            SET
                bekeken = bekeken + 1
            WHERE
                id = '"
.$_GET['id']."'
        
        "
);

        
        $titel = $show['artiest']." - ".$show['titel'];
        
        echo "
<tr>
<td class='capmain'>"
.$show['artiest']." - ".$show['titel']." (<font size=\"1\">".$show['bekeken']." keer bekeken</font>) </td>
</tr>
<tr>
<td class='main-body'>

<table border=\"0\" cellpadding=\"4\" cellspacing=\"0\" width=\"100%\" style=\"  background-image : url(images/bg_ex.bmp);border-color: #cccccc; color:#000 ; font-family:Arial, Helvetica, sans-serif; font-size:11px; padding:0px; border-width:1px; border-style:solid\"><tr><td align=\"center\"><embed quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" bgcolor=\"808080\" width=\"100%\" height=\"169\" src=\"http://www.esnips.com//escentral/images/widgets/flash/player_dj.swf\" flashvars=\"autoPlay=no&amp;theFile="
.$show['video']."&amp;theName=".$show['artiest']." - ".$show['titel']."&amp;thePlayerURL=http://www.esnips.com//escentral/images/widgets/flash/mp3WidgetPlayer.swf\"></embed></td></tr><tr><td style=\"valign=\"bottom\" align=\"center\"><a href=\"javascript:newWindow('sendemail.php?'+document.location.href,'email',400,300,'')\"><h3>Tell a friend</h3></a></td></tr></table>

        
<tr>
<td class='capmain'>
<p>Vote</p>
</td>
</tr>
<tr>
<td class='main-body'>
\n"
;
{

echo rating_bar($_GET['id'], 5);

}


echo "

<tr><td class='capmain'>Sitelink</td></tr>
<tr>
<td class='main-body'>    
<form name='openlocation'>
<input type='text' value='"
.$adres."/index.php?".$string."' class='textbox' size='35'>
</form>
<tr>
<td class='capmain'>
Andere tracks van "
.$show['artiest']."
</tr>
<tr>
<td class='main-body'>
"
;
        
        $meer_tracks_select = mysql_query("
        
            SELECT
                id,
                artiest,
                titel
            FROM
                clips
            WHERE
                artiest LIKE '%$show[artiest]%'
            AND
                titel != '"
.$show['titel']."'
            ORDER BY
                titel ASC
        
        "
) or die(mysql_error());
        
        $color = array( '#343434', '#2e2e2e');
        $i = 0;
        if(!mysql_num_rows($meer_tracks_select))
        {

        
            echo "Er zijn nog geen andere tracks van deze artiest(en).<br /></center>";
        
        }

        else
        {
        
            echo "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">";
            while($show2 = mysql_fetch_assoc($meer_tracks_select))
            {

    $show2['artiest'] = stripslashes($show2['artiest']);
    $show2['artiest'] = htmlentities($show2['artiest']);

    $show2['titel'] = stripslashes($show2['titel']);
    $show2['titel'] = htmlentities($show2['titel']);
            
                echo "<tr><td style='background-color: ".$color[ $i ] ."'><a style=\"color:#FFFFFF; text-decoration:none\" href=\"index.php?pagina=track&id=".$show2['id']."\">".$show2['artiest']." - ".$show2['titel']."</a></td>
                </tr>"
;
                
                if( $i > 0 )
                {

                
                    $i = 0;
                
                }

                else
                {
                
                    $i++;
                
                }
            
            }

            
        echo "</table>";
        
        }
    
    }

}


echo "<br />";

$advertentie_select = mysql_query("

    SELECT
        advertentie
    FROM
        advertenties
    WHERE
        plaats = 'clip'
    LIMIT 1

"
) or die (mysql_error());

while($show3 = mysql_fetch_assoc($advertentie_select))
{


    $show3['advertentie'] = stripslashes($show3['advertentie']);
    $show3['advertentie'] = nl2br($show3['advertentie']);
    
    echo $show3['advertentie'];

}


mysql_close();
?>

</html>

fout kun je zien op http://hardstylez.nl/index.php?pagina=track&id=72 kan iemand de fout uit mn script halen??

Het licht aan het stripslashes maar ik wil niet zo'n stomme \ voor mn comma's
 
PHP hulp

PHP hulp

18/11/2024 08:49:46
 
Jurgen assaasas

Jurgen assaasas

15/03/2008 00:43:00
Quote Anchor link
'%$show[artiest]%' moet zoieso buiten quotes en, in SQL is unequal geloof ik <> ipv != maar dat weet ik niet zeker.
 
Chieljan sportel

chieljan sportel

15/03/2008 06:58:00
Quote Anchor link
dat <> klopt niet egt helemaal volgens mij
 
Chieljan sportel

chieljan sportel

15/03/2008 07:48:00
Quote Anchor link
Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
3
4
5
6
<?php
include 'config.php';
require('_drawrating.php');

$string = $_SERVER['QUERY_STRING'];
?>

<html><head>
<script language="JavaScript">
function newWindow(mypage,myname,w,h,features) {
if(screen.width){
var winl = (screen.width-w)/2;
var wint = (screen.height-h)/2;
}else{winl = 0;wint =0;}
if (winl < 0) winl = 0;
if (wint < 0) wint = 0;
var settings = 'height=' + h + ',';
settings += 'width=' + w + ',';
settings += 'top=' + wint + ',';
settings += 'left=' + winl + ',';
settings += features;
win = window.open(mypage,myname,settings);
win.window.focus();
}
</script>
<script type="text/javascript" language="javascript" src="js/behavior.js"></script>
<script type="text/javascript" language="javascript" src="js/rating.js"></script>
</head>
Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
<?php
$_GET
['id'] = mysql_real_escape_string($_GET['id']);

$tracks_select = mysql_query("

    SELECT
    *
    FROM
        clips
    WHERE
        id = '"
.$_GET['id']."'
    LIMIT 1

"
) or die(mysql_error());

if(!mysql_num_rows($tracks_select))
{


    echo "
<tr>
<td class='capmain'>
<p>Oehhpss</p>
</td>
</tr>
<tr>
<td class='main-body'>
Deze track bestaat niet."
;

}

else
{

    while ($show = mysql_fetch_assoc($tracks_select))
    {

        $show['artiest'] = stripslashes($show['artiest']);
        $show['artiest'] = htmlentities($show['artiest']);
        
        $show['titel'] = stripslashes($show['titel']);
        $show['titel'] = htmlentities($show['titel']);
        
        
        mysql_query("
        
            UPDATE
                clips
            SET
                bekeken = bekeken + 1
            WHERE
                id = '"
.$_GET['id']."'
        
        "
);

        
        $titel = $show['artiest']." - ".$show['titel'];
        
        echo "
<tr>
<td class='capmain'>"
.$show['artiest']." - ".$show['titel']." (<font size=\"1\">".$show['bekeken']." keer bekeken</font>) </td>
</tr>
<tr>
<td class='main-body'>

<table border=\"0\" cellpadding=\"4\" cellspacing=\"0\" width=\"100%\" style=\"  background-image : url(images/bg_ex.bmp);border-color: #cccccc; color:#000 ; font-family:Arial, Helvetica, sans-serif; font-size:11px; padding:0px; border-width:1px; border-style:solid\"><tr><td align=\"center\"><embed quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" bgcolor=\"808080\" width=\"100%\" height=\"169\" src=\"http://www.esnips.com//escentral/images/widgets/flash/player_dj.swf\" flashvars=\"autoPlay=no&amp;theFile="
.$show['video']."&amp;theName=".$show['artiest']." - ".$show['titel']."&amp;thePlayerURL=http://www.esnips.com//escentral/images/widgets/flash/mp3WidgetPlayer.swf\"></embed></td></tr><tr><td style=\"valign=\"bottom\" align=\"center\"><a href=\"javascript:newWindow('sendemail.php?'+document.location.href,'email',400,300,'')\"><h3>Tell a friend</h3></a></td></tr></table>

        
<tr>
<td class='capmain'>
<p>Vote</p>
</td>
</tr>
<tr>
<td class='main-body'>
\n"
;
{

echo rating_bar($_GET['id'], 5);

}

echo "

<tr><td class='capmain'>Sitelink</td></tr>
<tr>
<td class='main-body'>    
<form name='openlocation'>
<input type='text' value='"
.$adres."/index.php?".$string."' class='textbox' size='35'>
</form>
<tr>
<td class='capmain'>
Andere tracks van "
.$show['artiest']."
</tr>
<tr>
<td class='main-body'>
"
;

{

$show['titel'] = addslashes($show['titel']);
$show['titel'] = htmlentities($show['titel']);
}


        
        $meer_tracks_select = mysql_query("
        
            SELECT
                id,
                artiest,
                titel
            FROM
                clips
            WHERE
                artiest LIKE '%$show[artiest]%'
            AND
                titel != '"
.$show['titel']."'
            ORDER BY
                titel ASC
        
        "
) or die(mysql_error());


        $color = array( '#343434', '#2e2e2e');
        $i = 0;
        if(!mysql_num_rows($meer_tracks_select))
        {

        
            echo "Er zijn nog geen andere tracks van deze artiest(en).<br /></center>";
        
        }

        else
        {

        echo "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">";
            while($show2 = mysql_fetch_assoc($meer_tracks_select))
            {

    $show2['artiest'] = stripslashes($show2['artiest']);
    $show2['artiest'] = htmlentities($show2['artiest']);

    $show2['titel'] = stripslashes($show2['titel']);
    $show2['titel'] = htmlentities($show2['titel']);

echo "<tr><td style='background-color: ".$color[ $i ] ."'><a style=\"color:#FFFFFF; text-decoration:none\" href=\"index.php?pagina=track&id=".$show2['id']."\">".$show2['artiest']." - ".$show2['titel']."</a></td>
                </tr>"
;
                
                if( $i > 0 )
                {

                
                    $i = 0;
                
                }

                else
                {
                
                    $i++;
                
                }
            
            }

            
        echo "</table>";
        
        }
    
    }

}


echo "<br />";

$advertentie_select = mysql_query("

    SELECT
        advertentie
    FROM
        advertenties
    WHERE
        plaats = 'clip'
    LIMIT 1

"
) or die (mysql_error());

while($show3 = mysql_fetch_assoc($advertentie_select))
{


    $show3['advertentie'] = stripslashes($show3['advertentie']);
    $show3['advertentie'] = nl2br($show3['advertentie']);
    
    echo $show3['advertentie'];

}


mysql_close();
?>

</html>

Zo kan het maar nu krijg je het eigen liedje weer bij meer tracks van http://hardstylez.nl/index.php?pagina=track&id=72
 



Overzicht Reageren

 
 

Om de gebruiksvriendelijkheid van onze website en diensten te optimaliseren maken wij gebruik van cookies. Deze cookies gebruiken wij voor functionaliteiten, analytische gegevens en marketing doeleinden. U vindt meer informatie in onze privacy statement.