PHP Probleem

Gestart doorMarv13 reacties102 weergaven

14 berichten · pagina 1 van 1

Marv

Lid · Topicstarter

Berichten
3.092
Reputatie
1
Punten
0,21
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?[/COLOR]
    [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REQUEST_METHOD[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"POST"[/COLOR][COLOR= #007700]){[/COLOR]
                [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/is_numeric"]is_numeric[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]aantal[/COLOR][COLOR= #007700]])){[/COLOR]
                  [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]aantal[/COLOR][COLOR= #007700]] >=[/COLOR] [COLOR= #DD0000]"100"[/COLOR][COLOR= #007700]) {[/COLOR]
                    [COLOR= #0000BB]$kosten[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]aantal[/COLOR][COLOR= #007700]];[/COLOR]
                    [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$saldo[/COLOR] [COLOR= #007700]>=[/COLOR] [COLOR= #0000BB]$kosten[/COLOR][COLOR= #007700]) {[/COLOR]
                        
    [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"UPDATE `leden` SET punten=punten-"[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$kosten[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]" WHERE `id` = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$leden[/COLOR][COLOR= #007700]->[/COLOR]getId[COLOR= #007700]().[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]
    [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"INSERT INTO klikfans (actief, naam, username, url, maximaal, nu) VALUES (1, "[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR]naam[COLOR= #007700]]).[/COLOR][COLOR= #DD0000]", "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$naam[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]" , "[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR]url[COLOR= #007700]]).[/COLOR][COLOR= #DD0000]", "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR]aantal[COLOR= #007700]].[/COLOR][COLOR= #DD0000]" , 0)"[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/print"]print[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
    [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]"Succesvol toegevoegd!<br>Ga nu in het menu naar klikfans om hem in de lijst te zien!"[/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]"Je hebt te weinig punten om zoveel klikfans te kopen"[/COLOR][COLOR= #007700];
                    }
                    }
                    }
                    }
                    }[/COLOR]
                     ?>


Wie kan dit verhelpen?

Er komt steeds niks in beeld, en hij post hem ook niet in de tabel
Wie kan dit maken?

Hij moet checken als veld Aantal alleen maar cijfers heeft.
En aantal mag niet groter dan 100.
En het lid zijn punten moet gelijk zijn als aantal, of hoger, maar als een lid 51 is mag dus 52 niet doorgaan (en hoger)

Mvg
0
Marv

Lid · Topicstarter

Berichten
3.092
Reputatie
1
Punten
0,21
Lid sinds
Laatst gezien
bumping
0
Berichten
3.540
Reputatie
0
Punten
0,01
Lid sinds
Laatst gezien
Weet je zeker dat $saldo bestaat?
0
Berichten
1.314
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Waar komt $saldo vandaan? Ik ken het systeem niet echt maar moet dat niet $leden->getSaldo();
o.i.d. zijn? In de query gebruik je trouwens punten, dus het kan ook zijn dat het niet saldo maar punten is?
i.i.g. dit is wat overzichtelijker.

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

[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REQUEST_METHOD[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"POST"[/COLOR][COLOR= #007700]) {[/COLOR]
    
    [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/is_numeric"]is_numeric[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]aantal[/COLOR][COLOR= #007700]])) {[/COLOR]

        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]aantal[/COLOR][COLOR= #007700]] >=[/COLOR] [COLOR= #DD0000]"100"[/COLOR][COLOR= #007700]) {[/COLOR]

            [COLOR= #0000BB]$kosten[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]aantal[/COLOR][COLOR= #007700]];[/COLOR]

            [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$saldo[/COLOR] [COLOR= #007700]>=[/COLOR] [COLOR= #0000BB]$kosten[/COLOR][COLOR= #007700]) {[/COLOR]
                        
                [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"
                            UPDATE 
                                `leden` 
                            SET 
                                punten = punten - "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$kosten[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]" 
                            WHERE 
                                id = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$leden[/COLOR][COLOR= #007700]->[/COLOR]getId[COLOR= #007700]().[/COLOR][COLOR= #DD0000]"
                                
                                "[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/print"]print[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
                                
                [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"
                            INSERT INTO 
                                `klikfans` 
                                (
                                    actief, 
                                    naam, 
                                    username, 
                                    url, 
                                    maximaal, 
                                    nu
                                ) 
                            VALUES 
                                (
                                    1, 
                                    "[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]", 
                                    "[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$naam[/COLOR][COLOR= #007700]).[/COLOR][COLOR= #DD0000]", 
                                    "[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]url[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]", 
                                    "[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]aantal[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]", 
                                    0
                                )
                                
                                "[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/print"]print[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
                                
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Succesvol toegevoegd!<br />Ga nu in het menu naar klikfans om hem in de lijst te zien!"[/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]"Je hebt te weinig punten om zoveel klikfans te kopen"[/COLOR][COLOR= #007700];
                
            }
            
        }
        
    }
    
}[/COLOR]

?>


Je had trouwens ook een } te veel.
0
Marv

Lid · Topicstarter

Berichten
3.092
Reputatie
1
Punten
0,21
Lid sinds
Laatst gezien
Werkt nog steeds niet, er komt niks in beeld.

Mvg
0
Berichten
1.314
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
lees jij überhaupt wel wat wij vragen.
0
Marv

Lid · Topicstarter

Berichten
3.092
Reputatie
1
Punten
0,21
Lid sinds
Laatst gezien
Kenzo schreef:
lees jij überhaupt wel wat wij vragen.
Ja hoor. Maar die staat bovenaan

$sql = "SELECT * FROM leden WHERE id=".$leden->getId()."";
 $query = mysql_query($sql);
 $gebruiker = mysql_fetch_object($query);
 $naam = htmlspecialchars($gebruiker->gebruikersnaam);
 $saldo = htmlspecialchars($gebruiker->punten);
0
Berichten
1.314
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
probeer dan ff dit. Waarschijn is er een foutje gemaakt en nu kun je zie waar:
Ook fijn dat als je het hebt gelezen, van net dan, dat je daar ook antwoord op geeft.

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

[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REQUEST_METHOD[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"POST"[/COLOR][COLOR= #007700]) {[/COLOR]
    
    [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/is_numeric"]is_numeric[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]aantal[/COLOR][COLOR= #007700]])) {[/COLOR]

        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]aantal[/COLOR][COLOR= #007700]] >=[/COLOR] [COLOR= #DD0000]"100"[/COLOR][COLOR= #007700]) {[/COLOR]

            [COLOR= #0000BB]$kosten[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]aantal[/COLOR][COLOR= #007700]];[/COLOR]

            [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$saldo[/COLOR] [COLOR= #007700]>=[/COLOR] [COLOR= #0000BB]$kosten[/COLOR][COLOR= #007700]) {[/COLOR]
                        
                [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"
                            UPDATE 
                                `leden` 
                            SET 
                                punten = punten - "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$kosten[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]" 
                            WHERE 
                                id = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$leden[/COLOR][COLOR= #007700]->[/COLOR]getId[COLOR= #007700]().[/COLOR][COLOR= #DD0000]"
                                
                                "[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/print"]print[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
                                
                [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"
                            INSERT INTO 
                                `klikfans` 
                                (
                                    actief, 
                                    naam, 
                                    username, 
                                    url, 
                                    maximaal, 
                                    nu
                                ) 
                            VALUES 
                                (
                                    1, 
                                    "[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]", 
                                    "[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$naam[/COLOR][COLOR= #007700]).[/COLOR][COLOR= #DD0000]", 
                                    "[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]url[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]", 
                                    "[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]aantal[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]", 
                                    0
                                )
                                
                                "[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/print"]print[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
                                
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Succesvol toegevoegd!<br />Ga nu in het menu naar klikfans om hem in de lijst te zien!"[/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]"Je hebt te weinig punten om zoveel klikfans te kopen"[/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]"1"[/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]"2"[/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]"3"[/COLOR][COLOR= #007700];
    
}[/COLOR]

?>
0
Marv

Lid · Topicstarter

Berichten
3.092
Reputatie
1
Punten
0,21
Lid sinds
Laatst gezien
er staat nu zonder dat ik post al: 3

en als ik post: 1
0
Berichten
1.314
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
En wat je post, is dat groter of gelijk aan 100? Want als je kleiner dan 100 hebt, dan geeft hij 1, maar als je 100 of 100+ hebt, dan werkt hij gewoon.
0
Berichten
20.364
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
En getallen kunnen zonder ""
0
Marv

Lid · Topicstarter

Berichten
3.092
Reputatie
1
Punten
0,21
Lid sinds
Laatst gezien
Kenzo schreef:
En wat je post, is dat groter of gelijk aan 100? Want als je kleiner dan 100 hebt, dan geeft hij 1, maar als je 100 of 100+ hebt, dan werkt hij gewoon.
hij moet onder de 100, maar als ik pagina open komt er al 3 te staan?
0
Berichten
1.314
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
@Shahiem, oops. Doe ik het wel met de aanpassingen en dan niet als ik het even aanvulbloos
Die 3 komt er te staan omdat er nog niets gepost is.

Verander dit dan:

if($_POST[aantal] >= "100") {


in:

if($_POST[aantal] <= "100") {


Zo wordt hij dus ongeveer en dan kan je nog dingen aanpassen

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

[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REQUEST_METHOD[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"POST"[/COLOR][COLOR= #007700]) {[/COLOR]
    
    [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/is_numeric"]is_numeric[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]aantal[/COLOR][COLOR= #007700]])) {[/COLOR]

        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]aantal[/COLOR][COLOR= #007700]] <=[/COLOR] [COLOR= #0000BB]100[/COLOR][COLOR= #007700]) {[/COLOR]

            [COLOR= #0000BB]$kosten[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]aantal[/COLOR][COLOR= #007700]];[/COLOR]

            [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$saldo[/COLOR] [COLOR= #007700]>=[/COLOR] [COLOR= #0000BB]$kosten[/COLOR][COLOR= #007700]) {[/COLOR]
                        
                [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"
                            UPDATE 
                                `leden` 
                            SET 
                                punten = punten - "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$kosten[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]" 
                            WHERE 
                                id = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$leden[/COLOR][COLOR= #007700]->[/COLOR]getId[COLOR= #007700]().[/COLOR][COLOR= #DD0000]"
                                
                                "[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/print"]print[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
                                
                [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"
                            INSERT INTO 
                                `klikfans` 
                                (
                                    actief, 
                                    naam, 
                                    username, 
                                    url, 
                                    maximaal, 
                                    nu
                                ) 
                            VALUES 
                                (
                                    1, 
                                    "[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]", 
                                    "[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$naam[/COLOR][COLOR= #007700]).[/COLOR][COLOR= #DD0000]", 
                                    "[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]url[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]", 
                                    "[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]aantal[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]", 
                                    0
                                )
                                
                                "[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/print"]print[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
                                
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Succesvol toegevoegd!<br />Ga nu in het menu naar klikfans om hem in de lijst te zien!"[/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]"Je hebt te weinig punten om zoveel klikfans te kopen"[/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]"100 is het maximum om in te vullen"[/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]"HE! Enkele getallen"[/COLOR][COLOR= #007700];
        
    }
    
}[/COLOR]

?>
0
Marv

Lid · Topicstarter

Berichten
3.092
Reputatie
1
Punten
0,21
Lid sinds
Laatst gezien
Bedankt kenzo smile
Werkt helemaal goed thumbsup
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