SQL error?

Gestart doorJoeri15 reacties57 weergaven

16 berichten · pagina 1 van 2

Joeri

Lid · Topicstarter

Berichten
5.737
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Dit is me error
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near at line 1

Moet ik de code posten of weet iemand zo de fout al?

Joeri
0
Berichten
2.396
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Post de code eens...
0
Joeri

Lid · Topicstarter

Berichten
5.737
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/include"]include[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]"config.php"[/COLOR][COLOR= #007700]);[/COLOR] ?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> 

    <head>
        <meta http-equiv="Cache-Control" content="no-cache" />
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="description" content="#" />
        <meta name="keywords" content="#" />
        <link rel="stylesheet" type="text/css" href="style.css" />
    </head>
    
    <body>
        <div id="main_container">
            <noscript><div id="javaoff">Javascript is turned off, for some scripts on the site we require that javascript is turned on.</div></noscript>
            <div id="header"></div>
            <div id="menu">
                <a href="/index.php">Home</a> |
                <a href="/aanmelden.php">Aanmelden</a> |
                <a href="/sponsors.php">Sponsors</a> |
                <a href="#">Ontstaan</a> 
                            </div>
             
            <div id="content_container">
                <div id="content_left">
                    <b>Special thanks:</b><br />
                    - Marjolein: Design / Slicing<br />
                    - Rik: Basing<br />
                    - Joeri: Organiseren<br />
                    - One2xs: Promotie<br /> 
                </div>
                <div id="content_mid">
[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/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]woot[/COLOR][COLOR= #007700]])) {[/COLOR]
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]one2xsname[/COLOR][COLOR= #007700]])) {[/COLOR]
            [COLOR= #0000BB]$fout[/COLOR][COLOR= #007700][] =[/COLOR] [COLOR= #DD0000]U heeft uw one2xs naam niet ingevuld.[/COLOR][COLOR= #007700];
        }[/COLOR]
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]website[/COLOR][COLOR= #007700]])) {[/COLOR]
            [COLOR= #0000BB]$fout[/COLOR][COLOR= #007700][] =[/COLOR] [COLOR= #DD0000]U heeft uw website link niet ingevuld[/COLOR][COLOR= #007700];
        }[/COLOR] 
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]opmerkingen[/COLOR][COLOR= #007700]])) {[/COLOR]
            [COLOR= #0000BB]$fout[/COLOR][COLOR= #007700][] =[/COLOR] [COLOR= #DD0000]U heeft geen omerkingen ingevuld[/COLOR][COLOR= #007700];
        }[/COLOR] 
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]accrules[/COLOR][COLOR= #007700]])) {[/COLOR]
            [COLOR= #0000BB]$fout[/COLOR][COLOR= #007700][] =[/COLOR] [COLOR= #DD0000]U heeft de regels niet geaccepteerd[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"INSERT INTO aanmeldingen ( naam, website, opmerkingen, ip ) VALUES ( "[/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]one2xsnaam[/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]website[/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]opmerkingen[/COLOR][COLOR= #007700]]) .[/COLOR] [COLOR= #DD0000]", "[/COLOR][COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REMOTE_ADDR[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]")"[/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/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$fout[/COLOR][COLOR= #007700])) {[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<div style="border: 1px dotted #962133; border-bottom: 2px solid #962133;background-color: #f75353;text-align:center;width:100%;">[/COLOR][COLOR= #007700];[/COLOR]
            [URL="http://www.php.net/foreach"]foreach[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$fout[/COLOR] [COLOR= #007700]as[/COLOR] [COLOR= #0000BB]$val[/COLOR][COLOR= #007700]){[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$val[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #DD0000]<br />[/COLOR][COLOR= #007700];
            }[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]</div>[/COLOR][COLOR= #007700];
        }[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"INSERT INTO aanmeldingen ( naam, website, opmerkingen, ip ) VALUES ( "[/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]one2xsnaam[/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]website[/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]opmerkingen[/COLOR][COLOR= #007700]]) .[/COLOR] [COLOR= #DD0000]", "[/COLOR][COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REMOTE_ADDR[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]""[/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/echo"]echo[/URL] [COLOR= #DD0000]<div style="border: 1px dotted #449D04; border-bottom: 2px solid #449D04; background-color: #96FF31;text-align:center;width:100%;">Uw aanmelding wordt verwerkt. Kijk regelmatig op de homepage voor meer informatie</div>[/COLOR][COLOR= #007700];
        }
            
    }[/COLOR]   
?>

<form action="#" method="POST">
    <input type="hidden" name="woot" value="woot" /> 

    One2xs naam: <br />
    <input type="text" name="one2xsname" /> <br /><br />
    
    Website-Link: <br />
    <input type="text" name="website" /> <br /><br />
    
    Opmerkingen: <br />
    <textarea name="opmerkingen"></textarea> <br /><br />
    
    Ik ga akkoord met alle regels:<br />
    <input type="checkbox" name="accrules" value="1" /> <br /><br />
    
    <input type="submit" name="submitsite" />
</form>                </div>
                <div id="content_right">
                </div>
            </div>
            <br id="clear" />
                
            
            <div id="footer">Design / Slicing by <a href="http://www.kfb-design.nl/">Kfb-Design</a> | Basing by <a href="http://www.one2xs.com/profiel/bekijk?gebruiker=rik">Rik - One2xs.com</a></div>
        </div>
    </body>
     
</html>
0
Krm

Lid

Berichten
6.235
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
maak hier

[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #FF8000]// Database details[/COLOR]
    [COLOR= #0000BB]$name_db[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"GAATJENIKSAAN"[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// Name of database[/COLOR]
    [COLOR= #0000BB]$user_db[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"GAATJENIKSAAN"[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// Username for database[/COLOR]
    [COLOR= #0000BB]$pass_db[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"GAATJENIKSAAN"[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// Password for database[/COLOR]
    [COLOR= #0000BB]$host_db[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"localhost"[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// Host for database[/COLOR]
    [COLOR= #0000BB]$connect_db[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_connect"]mysql_connect[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$host_db[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$user_db[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$pass_db[/COLOR][COLOR= #007700]);[/COLOR]

    [COLOR= #FF8000]// Making connection to our database         [/COLOR]
    [URL="http://www.php.net/mysql_select_db"]mysql_select_db[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$name_db[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$connect_db[/COLOR][COLOR= #007700]);[/COLOR] ?>


een nieuwe pagina genaamt config.php
en gebruik nu het code zo

[COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/include"]include[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]"config.php"[/COLOR][COLOR= #007700]);[/COLOR] ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> 

    <head>
        <meta http-equiv="Cache-Control" content="no-cache" />
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="description" content="#" />
        <meta name="keywords" content="#" />
        <link rel="stylesheet" type="text/css" href="style.css" />
    </head>
    
    <body>
        <div id="main_container">
            <noscript><div id="javaoff">Javascript is turned off, for some scripts on the site we require that javascript is turned on.</div></noscript>
            <div id="header"></div>
            <div id="menu">
                <a href="/index.php">Home</a> |
                <a href="/aanmelden.php">Aanmelden</a> |
                <a href="/sponsors.php">Sponsors</a> |
                <a href="#">Ontstaan</a> 
                            </div>
             
            <div id="content_container">
                <div id="content_left">
                    <b>Special thanks:</b><br />
                    - Marjolein: Design / Slicing<br />
                    - Rik: Basing<br />
                    - Joeri: Organiseren<br />
                    - One2xs: Promotie<br /> 
                </div>
                <div id="content_mid">
[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/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]woot[/COLOR][COLOR= #007700]])) {[/COLOR]
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]one2xsname[/COLOR][COLOR= #007700]])) {[/COLOR]
            [COLOR= #0000BB]$fout[/COLOR][COLOR= #007700][] =[/COLOR] [COLOR= #DD0000]U heeft uw one2xs naam niet ingevuld.[/COLOR][COLOR= #007700];
        }[/COLOR]
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]website[/COLOR][COLOR= #007700]])) {[/COLOR]
            [COLOR= #0000BB]$fout[/COLOR][COLOR= #007700][] =[/COLOR] [COLOR= #DD0000]U heeft uw website link niet ingevuld[/COLOR][COLOR= #007700];
        }[/COLOR] 
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]opmerkingen[/COLOR][COLOR= #007700]])) {[/COLOR]
            [COLOR= #0000BB]$fout[/COLOR][COLOR= #007700][] =[/COLOR] [COLOR= #DD0000]U heeft geen omerkingen ingevuld[/COLOR][COLOR= #007700];
        }[/COLOR] 
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]accrules[/COLOR][COLOR= #007700]])) {[/COLOR]
            [COLOR= #0000BB]$fout[/COLOR][COLOR= #007700][] =[/COLOR] [COLOR= #DD0000]U heeft de regels niet geaccepteerd[/COLOR][COLOR= #007700];
        }[/COLOR]
        
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700](![/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$fout[/COLOR][COLOR= #007700])) {[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<div style="border: 1px dotted #962133; border-bottom: 2px solid #962133;background-color: #f75353;text-align:center;width:100%;">[/COLOR][COLOR= #007700];[/COLOR]
            [URL="http://www.php.net/foreach"]foreach[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$fout[/COLOR] [COLOR= #007700]as[/COLOR] [COLOR= #0000BB]$val[/COLOR][COLOR= #007700]){[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$val[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #DD0000]<br />[/COLOR][COLOR= #007700];
            }[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]</div>[/COLOR][COLOR= #007700];
        }[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"INSERT INTO aanmeldingen ( naam, website, opmerkingen, ip ) VALUES ( "[/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]one2xsnaam[/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]website[/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]opmerkingen[/COLOR][COLOR= #007700]]) .[/COLOR] [COLOR= #DD0000]", "[/COLOR][COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REMOTE_ADDR[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]""[/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/echo"]echo[/URL] [COLOR= #DD0000]<div style="border: 1px dotted #449D04; border-bottom: 2px solid #449D04; background-color: #96FF31;text-align:center;width:100%;">Uw aanmelding wordt verwerkt. Kijk regelmatig op de homepage voor meer informatie</div>[/COLOR][COLOR= #007700];
        }
            
    }[/COLOR]   
?>

<form action="#" method="POST">
    <input type="hidden" name="woot" value="woot" /> 

    One2xs naam: <br />
    <input type="text" name="one2xsname" /> <br /><br />
    
    Website-Link: <br />
    <input type="text" name="website" /> <br /><br />
    
    Opmerkingen: <br />
    <textarea name="opmerkingen"></textarea> <br /><br />
    
    Ik ga akkoord met alle regels:<br />
    <input type="checkbox" name="accrules" value="1" /> <br /><br />
    
    <input type="submit" name="submitsite" />
</form>                </div>
                <div id="content_right">
                </div>
            </div>
            <br id="clear" />
                
            
            <div id="footer">Design / Slicing by <a href="http://www.kfb-design.nl/">Kfb-Design</a> | Basing by <a href="http://www.one2xs.com/profiel/bekijk?gebruiker=rik">Rik - One2xs.com</a></div>
        </div>
    </body>
     
</html>
0
Berichten
2.396
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
mysql_query("INSERT INTO aanmeldingen ( naam, website, opmerkingen, ip ) VALUES ( " . mysql_real_escape_string($_POST[one2xsnaam]) . ", " . mysql_real_escape_string($_POST[website]) . ", " . mysql_real_escape_string($_POST[opmerkingen]) . ", ". $_SERVER[REMOTE_ADDR] . ")") or die(mysql_error());


Moet regel 55 worden.
0
Krm

Lid

Berichten
6.235
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
dat heb ik ff niet eens bekeken maar doe wel wat ik zeg is beter dan wat je nu hebt
0
Joeri

Lid · Topicstarter

Berichten
5.737
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Joeri schreef:
[COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/include"]include[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]"config.php"[/COLOR][COLOR= #007700]);[/COLOR] ?>
 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> 

    <head>
        <meta http-equiv="Cache-Control" content="no-cache" />
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="description" content="#" />
        <meta name="keywords" content="#" />
        <link rel="stylesheet" type="text/css" href="style.css" />
    </head>
    
    <body>
        <div id="main_container">
            <noscript><div id="javaoff">Javascript is turned off, for some scripts on the site we require that javascript is turned on.</div></noscript>
            <div id="header"></div>
            <div id="menu">
                <a href="/index.php">Home</a> |
                <a href="/aanmelden.php">Aanmelden</a> |
                <a href="/sponsors.php">Sponsors</a> |
                <a href="#">Ontstaan</a> 
                            </div>
             
            <div id="content_container">
                <div id="content_left">
                    <b>Special thanks:</b><br />
                    - Marjolein: Design / Slicing<br />
                    - Rik: Basing<br />
                    - Joeri: Organiseren<br />
                    - One2xs: Promotie<br /> 
                </div>
                <div id="content_mid">
[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/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]woot[/COLOR][COLOR= #007700]])) {[/COLOR]
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]one2xsname[/COLOR][COLOR= #007700]])) {[/COLOR]
            [COLOR= #0000BB]$fout[/COLOR][COLOR= #007700][] =[/COLOR] [COLOR= #DD0000]U heeft uw one2xs naam niet ingevuld.[/COLOR][COLOR= #007700];
        }[/COLOR]
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]website[/COLOR][COLOR= #007700]])) {[/COLOR]
            [COLOR= #0000BB]$fout[/COLOR][COLOR= #007700][] =[/COLOR] [COLOR= #DD0000]U heeft uw website link niet ingevuld[/COLOR][COLOR= #007700];
        }[/COLOR] 
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]opmerkingen[/COLOR][COLOR= #007700]])) {[/COLOR]
            [COLOR= #0000BB]$fout[/COLOR][COLOR= #007700][] =[/COLOR] [COLOR= #DD0000]U heeft geen omerkingen ingevuld[/COLOR][COLOR= #007700];
        }[/COLOR] 
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]accrules[/COLOR][COLOR= #007700]])) {[/COLOR]
            [COLOR= #0000BB]$fout[/COLOR][COLOR= #007700][] =[/COLOR] [COLOR= #DD0000]U heeft de regels niet geaccepteerd[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"INSERT INTO aanmeldingen ( naam, website, opmerkingen, ip ) VALUES ( "[/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]one2xsnaam[/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]website[/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]opmerkingen[/COLOR][COLOR= #007700]]) .[/COLOR] [COLOR= #DD0000]", "[/COLOR][COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REMOTE_ADDR[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]")"[/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/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$fout[/COLOR][COLOR= #007700])) {[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<div style="border: 1px dotted #962133; border-bottom: 2px solid #962133;background-color: #f75353;text-align:center;width:100%;">[/COLOR][COLOR= #007700];[/COLOR]
            [URL="http://www.php.net/foreach"]foreach[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$fout[/COLOR] [COLOR= #007700]as[/COLOR] [COLOR= #0000BB]$val[/COLOR][COLOR= #007700]){[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$val[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #DD0000]<br />[/COLOR][COLOR= #007700];
            }
          }[/COLOR]  [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]</div>[/COLOR][COLOR= #007700];
        }[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"INSERT INTO aanmeldingen ( naam, website, opmerkingen, ip ) VALUES ( "[/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]one2xsnaam[/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]website[/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]opmerkingen[/COLOR][COLOR= #007700]]) .[/COLOR] [COLOR= #DD0000]", "[/COLOR][COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REMOTE_ADDR[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]""[/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/echo"]echo[/URL] [COLOR= #DD0000]<div style="border: 1px dotted #449D04; border-bottom: 2px solid #449D04; background-color: #96FF31;text-align:center;width:100%;">Uw aanmelding wordt verwerkt. Kijk regelmatig op de homepage voor meer informatie</div>[/COLOR][COLOR= #007700];
        }
            
    }[/COLOR]   
?>

<form action="#" method="POST">
    <input type="hidden" name="woot" value="woot" /> 

    One2xs naam: <br />
    <input type="text" name="one2xsname" /> <br /><br />
    
    Website-Link: <br />
    <input type="text" name="website" /> <br /><br />
    
    Opmerkingen: <br />
    <textarea name="opmerkingen"></textarea> <br /><br />
    
    Ik ga akkoord met alle regels:<br />
    <input type="checkbox" name="accrules" value="1" /> <br /><br />
    
    <input type="submit" name="submitsite" />
</form>                </div>
                <div id="content_right">
                </div>
            </div>
            <br id="clear" />
                
            
            <div id="footer">Design / Slicing by <a href="http://www.kfb-design.nl/">Kfb-Design</a> | Basing by <a href="http://www.one2xs.com/profiel/bekijk?gebruiker=rik">Rik - One2xs.com</a></div>
        </div>
    </body>
     
</html>
Dit is me code nu maar dan is dit de error :

Parse error: syntax error, unexpected $end in /home/kerjoeri/domains/wedstrijd.one2xs.com/public_html/aanmelden.php on line 93

Zal wel weer domme fout van me zijn maar ik kom er niet op
0
Krm

Lid

Berichten
6.235
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
jeh bet vast een if of een else niet goed afgelsoten
0
Berichten
8.602
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Je bent ergens een } vergeten
0
Joeri

Lid · Topicstarter

Berichten
5.737
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Al gevonden en fixed maar nu zegt hij weer geen database selected..
Dat heb ik toch wel gedaan of heb ik het nou fout..
Dit is de code

[COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/include"]include[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]"config.php"[/COLOR][COLOR= #007700]);[/COLOR] ?>
 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> 

    <head>
        <meta http-equiv="Cache-Control" content="no-cache" />
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="description" content="#" />
        <meta name="keywords" content="#" />
        <link rel="stylesheet" type="text/css" href="style.css" />
    </head>
    
    <body>
        <div id="main_container">
            <noscript><div id="javaoff">Javascript is turned off, for some scripts on the site we require that javascript is turned on.</div></noscript>
            <div id="header"></div>
            <div id="menu">
                <a href="/index.php">Home</a> |
                <a href="/aanmelden.php">Aanmelden</a> |
                <a href="/sponsors.php">Sponsors</a> |
                <a href="#">Ontstaan</a> 
                            </div>
             
            <div id="content_container">
                <div id="content_left">
                    <b>Special thanks:</b><br />
                    - Marjolein: Design / Slicing<br />
                    - Rik: Basing<br />
                    - Joeri: Organiseren<br />
                    - One2xs: Promotie<br /> 
                </div>
                <div id="content_mid">
[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/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]woot[/COLOR][COLOR= #007700]])) {[/COLOR]
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]one2xsname[/COLOR][COLOR= #007700]])) {[/COLOR]
            [COLOR= #0000BB]$fout[/COLOR][COLOR= #007700][] =[/COLOR] [COLOR= #DD0000]U heeft uw one2xs naam niet ingevuld.[/COLOR][COLOR= #007700];
        }[/COLOR]
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]website[/COLOR][COLOR= #007700]])) {[/COLOR]
            [COLOR= #0000BB]$fout[/COLOR][COLOR= #007700][] =[/COLOR] [COLOR= #DD0000]U heeft uw website link niet ingevuld[/COLOR][COLOR= #007700];
        }[/COLOR] 
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]opmerkingen[/COLOR][COLOR= #007700]])) {[/COLOR]
            [COLOR= #0000BB]$fout[/COLOR][COLOR= #007700][] =[/COLOR] [COLOR= #DD0000]U heeft geen omerkingen ingevuld[/COLOR][COLOR= #007700];
        }[/COLOR] 
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]accrules[/COLOR][COLOR= #007700]])) {[/COLOR]
            [COLOR= #0000BB]$fout[/COLOR][COLOR= #007700][] =[/COLOR] [COLOR= #DD0000]U heeft de regels niet geaccepteerd[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"INSERT INTO aanmeldingen ( naam, website, opmerkingen, ip ) VALUES ( "[/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]one2xsnaam[/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]website[/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]opmerkingen[/COLOR][COLOR= #007700]]) .[/COLOR] [COLOR= #DD0000]", "[/COLOR][COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REMOTE_ADDR[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]")"[/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/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$fout[/COLOR][COLOR= #007700])) {[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<div style="border: 1px dotted #962133; border-bottom: 2px solid #962133;background-color: #f75353;text-align:center;width:100%;">[/COLOR][COLOR= #007700];[/COLOR]
            [URL="http://www.php.net/foreach"]foreach[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$fout[/COLOR] [COLOR= #007700]as[/COLOR] [COLOR= #0000BB]$val[/COLOR][COLOR= #007700]){[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$val[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #DD0000]<br />[/COLOR][COLOR= #007700];
            }
          }[/COLOR]  [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]</div>[/COLOR][COLOR= #007700];
        }[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"INSERT INTO aanmeldingen ( naam, website, opmerkingen, ip ) VALUES ( "[/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]one2xsnaam[/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]website[/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]opmerkingen[/COLOR][COLOR= #007700]]) .[/COLOR] [COLOR= #DD0000]", "[/COLOR][COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REMOTE_ADDR[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]""[/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/echo"]echo[/URL] [COLOR= #DD0000]<div style="border: 1px dotted #449D04; border-bottom: 2px solid #449D04; background-color: #96FF31;text-align:center;width:100%;">Uw aanmelding wordt verwerkt. Kijk regelmatig op de homepage voor meer informatie</div>[/COLOR][COLOR= #007700];
        }
            
    }[/COLOR]   
?>

<form action="#" method="POST">
    <input type="hidden" name="woot" value="woot" /> 

    One2xs naam: <br />
    <input type="text" name="one2xsname" /> <br /><br />
    
    Website-Link: <br />
    <input type="text" name="website" /> <br /><br />
    
    Opmerkingen: <br />
    <textarea name="opmerkingen"></textarea> <br /><br />
    
    Ik ga akkoord met alle regels:<br />
    <input type="checkbox" name="accrules" value="1" /> <br /><br />
    
    <input type="submit" name="submitsite" />
</form>                </div>
                <div id="content_right">
                </div>
            </div>
            <br id="clear" />
                
            
            <div id="footer">Design / Slicing by <a href="http://www.kfb-design.nl/">Kfb-Design</a> | Basing by <a href="http://www.one2xs.com/profiel/bekijk?gebruiker=rik">Rik - One2xs.com</a></div>
        </div>
    </body>
     
</html>
0
Joeri

Lid · Topicstarter

Berichten
5.737
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Als iemand hem helemaal fixt en hier post voor mij krijgt degene 0,06 (het moet vanavond af zijn en dat ontbreekt alleen nog maar!
0
Berichten
18.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/include"]include[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]"config.php"[/COLOR][COLOR= #007700]);[/COLOR] ?>
 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> 

    <head>
        <meta http-equiv="Cache-Control" content="no-cache" />
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="description" content="#" />
        <meta name="keywords" content="#" />
        <link rel="stylesheet" type="text/css" href="style.css" />
    </head>
    
    <body>
        <div id="main_container">
            <noscript><div id="javaoff">Javascript is turned off, for some scripts on the site we require that javascript is turned on.</div></noscript>
            <div id="header"></div>
            <div id="menu">
                <a href="/index.php">Home</a> |
                <a href="/aanmelden.php">Aanmelden</a> |
                <a href="/sponsors.php">Sponsors</a> |
                <a href="#">Ontstaan</a> 
                            </div>
             
            <div id="content_container">
                <div id="content_left">
                    <b>Special thanks:</b><br />
                    - Marjolein: Design / Slicing<br />
                    - Rik: Basing<br />
                    - Joeri: Organiseren<br />
                    - One2xs: Promotie<br /> 
                </div>
                <div id="content_mid">
[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/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]woot[/COLOR][COLOR= #007700]])) {[/COLOR]
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]one2xsname[/COLOR][COLOR= #007700]])) {[/COLOR]
            [COLOR= #0000BB]$fout[/COLOR][COLOR= #007700][] =[/COLOR] [COLOR= #DD0000]U heeft uw one2xs naam niet ingevuld.[/COLOR][COLOR= #007700];
        }[/COLOR]
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]website[/COLOR][COLOR= #007700]])) {[/COLOR]
            [COLOR= #0000BB]$fout[/COLOR][COLOR= #007700][] =[/COLOR] [COLOR= #DD0000]U heeft uw website link niet ingevuld[/COLOR][COLOR= #007700];
        }[/COLOR] 
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]opmerkingen[/COLOR][COLOR= #007700]])) {[/COLOR]
            [COLOR= #0000BB]$fout[/COLOR][COLOR= #007700][] =[/COLOR] [COLOR= #DD0000]U heeft geen omerkingen ingevuld[/COLOR][COLOR= #007700];
        }[/COLOR] 
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]accrules[/COLOR][COLOR= #007700]])) {[/COLOR]
            [COLOR= #0000BB]$fout[/COLOR][COLOR= #007700][] =[/COLOR] [COLOR= #DD0000]U heeft de regels niet geaccepteerd[/COLOR][COLOR= #007700];
        }[/COLOR]
        
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700](![/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$fout[/COLOR][COLOR= #007700])) {[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<div style="border: 1px dotted #962133; border-bottom: 2px solid #962133;background-color: #f75353;text-align:center;width:100%;">[/COLOR][COLOR= #007700];[/COLOR]
            [URL="http://www.php.net/foreach"]foreach[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$fout[/COLOR] [COLOR= #007700]as[/COLOR] [COLOR= #0000BB]$val[/COLOR][COLOR= #007700]){[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$val[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #DD0000]<br />[/COLOR][COLOR= #007700];
            }[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]</div>[/COLOR][COLOR= #007700];
        }[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"INSERT INTO aanmeldingen ( naam, website, opmerkingen, ip ) VALUES ( "[/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]one2xsnaam[/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]website[/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]opmerkingen[/COLOR][COLOR= #007700]]) .[/COLOR] [COLOR= #DD0000]", "[/COLOR][COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REMOTE_ADDR[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]""[/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/echo"]echo[/URL] [COLOR= #DD0000]<div style="border: 1px dotted #449D04; border-bottom: 2px solid #449D04; background-color: #96FF31;text-align:center;width:100%;">Uw aanmelding wordt verwerkt. Kijk regelmatig op de homepage voor meer informatie</div>[/COLOR][COLOR= #007700];
        }
            
    }[/COLOR]   
?>

<form action="#" method="POST">
    <input type="hidden" name="woot" value="woot" /> 

    One2xs naam: <br />
    <input type="text" name="one2xsname" /> <br /><br />
    
    Website-Link: <br />
    <input type="text" name="website" /> <br /><br />
    
    Opmerkingen: <br />
    <textarea name="opmerkingen"></textarea> <br /><br />
    
    Ik ga akkoord met alle regels:<br />
    <input type="checkbox" name="accrules" value="1" /> <br /><br />
    
    <input type="submit" name="submitsite" />
</form>                </div>
                <div id="content_right">
                </div>
            </div>
            <br id="clear" />
                
            
            <div id="footer">Design / Slicing by <a href="http://www.kfb-design.nl/">Kfb-Design</a> | Basing by <a href="http://www.one2xs.com/profiel/bekijk?gebruiker=rik">Rik - One2xs.com</a></div>
        </div>
    </body>
     
</html>
0
Joeri

Lid · Topicstarter

Berichten
5.737
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Sorry wat hier stond was mijn fout dit staat er :
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near at line 1
0
Rik

Lid

Berichten
18.393
Reputatie
0
Punten
0,04
Lid sinds
Laatst gezien
Joeri, kom op msn =]
0
Rik

Lid

Berichten
18.393
Reputatie
0
Punten
0,04
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/include"]include[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]"config.php"[/COLOR][COLOR= #007700]);[/COLOR] ?>
 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> 

    <head>
        <meta http-equiv="Cache-Control" content="no-cache" />
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="description" content="#" />
        <meta name="keywords" content="#" />
        <link rel="stylesheet" type="text/css" href="style.css" />
    </head>
    
    <body>
        <div id="main_container">
            <noscript><div id="javaoff">Javascript is turned off, for some scripts on the site we require that javascript is turned on.</div></noscript>
            <div id="header"></div>
            <div id="menu">
                <a href="/index.php">Home</a> |
                <a href="/aanmelden.php">Aanmelden</a> |
                <a href="/sponsors.php">Sponsors</a> |
                <a href="#">Ontstaan</a> 
                            </div>
             
            <div id="content_container">
                <div id="content_left">
                    <b>Special thanks:</b><br />
                    - Marjolein: Design / Slicing<br />
                    - Rik: Basing<br />
                    - Joeri: Organiseren<br />
                    - One2xs: Promotie<br /> 
                </div>
                <div id="content_mid">
[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/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]woot[/COLOR][COLOR= #007700]])) {[/COLOR]
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]one2xsname[/COLOR][COLOR= #007700]])) {[/COLOR]
            [COLOR= #0000BB]$fout[/COLOR][COLOR= #007700][] =[/COLOR] [COLOR= #DD0000]U heeft uw one2xs naam niet ingevuld.[/COLOR][COLOR= #007700];
        }[/COLOR]
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]website[/COLOR][COLOR= #007700]])) {[/COLOR]
            [COLOR= #0000BB]$fout[/COLOR][COLOR= #007700][] =[/COLOR] [COLOR= #DD0000]U heeft uw website link niet ingevuld[/COLOR][COLOR= #007700];
        }[/COLOR] 
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]opmerkingen[/COLOR][COLOR= #007700]])) {[/COLOR]
            [COLOR= #0000BB]$fout[/COLOR][COLOR= #007700][] =[/COLOR] [COLOR= #DD0000]U heeft geen omerkingen ingevuld[/COLOR][COLOR= #007700];
        }[/COLOR] 
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]accrules[/COLOR][COLOR= #007700]])) {[/COLOR]
            [COLOR= #0000BB]$fout[/COLOR][COLOR= #007700][] =[/COLOR] [COLOR= #DD0000]U heeft de regels niet geaccepteerd[/COLOR][COLOR= #007700];
        }[/COLOR]
        
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700](![/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$fout[/COLOR][COLOR= #007700])) {[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<div style="border: 1px dotted #962133; border-bottom: 2px solid #962133;background-color: #f75353;text-align:center;width:100%;">[/COLOR][COLOR= #007700];[/COLOR]
            [URL="http://www.php.net/foreach"]foreach[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$fout[/COLOR] [COLOR= #007700]as[/COLOR] [COLOR= #0000BB]$val[/COLOR][COLOR= #007700]){[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$val[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #DD0000]<br />[/COLOR][COLOR= #007700];
            }[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]</div>[/COLOR][COLOR= #007700];
        }[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"INSERT INTO aanmeldingen ( naam, website, opmerkingen, ip ) VALUES ( "[/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]one2xsnaam[/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]website[/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]opmerkingen[/COLOR][COLOR= #007700]]) .[/COLOR] [COLOR= #DD0000]", "[/COLOR][COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REMOTE_ADDR[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]")"[/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/echo"]echo[/URL] [COLOR= #DD0000]<div style="border: 1px dotted #449D04; border-bottom: 2px solid #449D04; background-color: #96FF31;text-align:center;width:100%;">Uw aanmelding wordt verwerkt. Kijk regelmatig op de homepage voor meer informatie</div>[/COLOR][COLOR= #007700];
        }
            
    }[/COLOR]   
?>

<form action="#" method="POST">
    <input type="hidden" name="woot" value="woot" /> 

    One2xs naam: <br />
    <input type="text" name="one2xsname" /> <br /><br />
    
    Website-Link: <br />
    <input type="text" name="website" /> <br /><br />
    
    Opmerkingen: <br />
    <textarea name="opmerkingen"></textarea> <br /><br />
    
    Ik ga akkoord met alle regels:<br />
    <input type="checkbox" name="accrules" value="1" /> <br /><br />
    
    <input type="submit" name="submitsite" />
</form>                </div>
                <div id="content_right">
                </div>
            </div>
            <br id="clear" />
                
            
            <div id="footer">Design / Slicing by <a href="http://www.kfb-design.nl/">Kfb-Design</a> | Basing by <a href="http://www.one2xs.com/profiel/bekijk?gebruiker=rik">Rik - One2xs.com</a></div>
        </div>
    </body>
     
</html>
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