Hallo one2xsers
Ik ben nu bezig aan me eerste OOP php script,Maar ik loop steeds op deze probleem
Parse error: syntax error, unexpected }
Mijn code is:
weten jullie de oplossing Laat dan ff een bericht achter en Voor tips sta ik ook open
Ik ben nu bezig aan me eerste OOP php script,Maar ik loop steeds op deze probleem
Parse error: syntax error, unexpected }
Mijn code is:
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]include/config.php[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/class"]class[/URL] muntjes [COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/public"]public[/URL] [COLOR= #007700]function[/COLOR] __construct[COLOR= #007700]()
{[/COLOR]
[COLOR= #0000BB]$db[/COLOR] [COLOR= #007700]= new[/COLOR] DB_Class[COLOR= #007700]();
}[/COLOR]
[URL="http://www.php.net/public"]public[/URL] [COLOR= #007700]function[/COLOR] invoegen_muntjes[COLOR= #007700]([/COLOR][COLOR= #0000BB]$muntjes[/COLOR][COLOR= #007700])
{[/COLOR]
[COLOR= #0000BB]$muntjesinvoegen[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"INSERT INTO leden (muntjes) VALUES ($muntjes)"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/return"]return[/URL] [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/preg_match"]preg_match[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"/[0-9]/"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$muntjes[/COLOR][COLOR= #007700])
}}[/COLOR]
?> weten jullie de oplossing Laat dan ff een bericht achter en Voor tips sta ik ook open
