Betaal script

Gestart doorMarv17 reacties30 weergaven

18 berichten · pagina 2 van 2

Berichten
4.912
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php
$lid[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"select * FROM users where id =$_SESSION[íd]"[/COLOR][COLOR= #007700])[/COLOR]
[COLOR= #0000BB]$user[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_array"]mysql_fetch_array[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$lid[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$credits[/COLOR] [COLOR= #007700]=[/COLOR][COLOR= #0000BB]$user[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]credits[/COLOR][COLOR= #007700]];[/COLOR]
[COLOR= #0000BB]$row[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"select * from shop WHERE id =$_GET[id]"[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$rowToevoeg[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_array"]mysql_fetch_array[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$credits[/COLOR] [COLOR= #007700]<[/COLOR] [COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]cost[/COLOR][COLOR= #007700]]{[/COLOR]
       [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Niet genoeg![/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]Blaaaaat[/COLOR][COLOR= #007700];
       }[/COLOR]
?>


Zoiets!
0
Marv

Lid · Topicstarter

Berichten
3.092
Reputatie
1
Punten
0,21
Lid sinds
Laatst gezien
Het was al geregeld smile
0
Fass

Lid

Berichten
3.771
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
mysql_query("UPDATE users SET credits = credits - " . $row[cost]);

- Maar dan met een where erin?
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