Martijnn schreef:Microsoft Frontpage kan het ook gewoon dacht ik! En als je echt wat wilt bereiken is het sowieso handig een programma aan te aanschaffen!Ja Adobe DreamWeaver kan dat, maar dat programma is niet gratis, je wel gratis een 30 dagen trial nemen.Eerdere citaten tonen
Dylanh schreef:Kan iemand voor mij "uitlijnen"
Commands -> Apply Source Formatting
Weer een error!
Dylan, ben je zo lui om ff je tab toets in te drukken
!
!Spatiebalk x4 induwen en zorgen dat alles er netjes uitziet in de stijl als
if(piet=jarig)
....{
........echo "hoi Piet";
....}
of
if(piet=jarig){
........echo "hoi Piet";
....}
Punten zijn spaties
(of 4 spaties zijn tabs maar ik zou spaties gebruiken)
Verder moet je je wachtwoorden verplicht hashen
if(piet=jarig)
....{
........echo "hoi Piet";
....}
of
if(piet=jarig){
........echo "hoi Piet";
....}
Punten zijn spaties
(of 4 spaties zijn tabs maar ik zou spaties gebruiken)Verder moet je je wachtwoorden verplicht hashen
nu hebt ik dit:
en geeft tie een eroro op line 37
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #FF8000]// Copyright by Dylanh @ one2xs.com [/COLOR]
[COLOR= #0000BB]$username[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]username[/COLOR][COLOR= #007700]];[/COLOR]
[COLOR= #0000BB]$password[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]password[/COLOR][COLOR= #007700]];[/COLOR]
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$username[/COLOR][COLOR= #007700]&&[/COLOR][COLOR= #0000BB]$password[/COLOR][COLOR= #007700])
{[/COLOR]
[COLOR= #0000BB]$connect[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_connect"]mysql_connect[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"localhost"[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]"root"[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]"***"[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"Oeps geen verbinding met de mysql server"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/mysql_select_db"]mysql_select_db[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"php"[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"Kan de database niet vinden!"[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$query[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM users WHERE username=$username"[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$numrows[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$query[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$numrows[/COLOR][COLOR= #007700]!=[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700])
{[/COLOR]
[URL="http://www.php.net/while"]while[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$query[/COLOR][COLOR= #007700]))
{[/COLOR]
[COLOR= #0000BB]$dbusername[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]username[/COLOR][COLOR= #007700]];[/COLOR]
[COLOR= #0000BB]$dbpassword[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]password[/COLOR][COLOR= #007700]];[/COLOR]
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$username[/COLOR][COLOR= #007700]==[/COLOR][COLOR= #0000BB]$dbusername[/COLOR][COLOR= #007700]&&[/COLOR][COLOR= #0000BB]$password[/COLOR][COLOR= #007700]==[/COLOR][COLOR= #0000BB]$dbpassword[/COLOR][COLOR= #007700])
{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Je bent ingelogt!!"[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Oeps fout wachtwoord"[/COLOR][COLOR= #007700];
}
{[/COLOR]
[URL="http://www.php.net/else"]else[/URL]
[URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"Oeps gebruikersnaam is niet gevonden!!"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$numrows[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL]
[URL="http://www.php.net/die"]die[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]"Log aub goed in!"[/COLOR][COLOR= #007700]);[/COLOR]
?> en geeft tie een eroro op line 37
Je else is niet goed. Voorbeeld:
We kunnen niet alles voorkauwen he.
[COLOR= #0000BB]<?php
$tel[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700]+[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$tel[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]2[/COLOR][COLOR= #007700]){[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Yeah!"[/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]"It sucks"[/COLOR][COLOR= #007700];
}[/COLOR]
?> We kunnen niet alles voorkauwen he.
Der staan nog meer fouten in je ( en {.
Kyron schreef:if(piet=jarig)Spatiebalk x4 induwen en zorgen dat alles er netjes uitziet in de stijl als
....{
........echo "hoi Piet";
....}
of
if(piet=jarig){
........echo "hoi Piet";
....}
Punten zijn spaties
(of 4 spaties zijn tabs maar ik zou spaties gebruiken)Verder moet je je wachtwoorden verplicht hashen
Spaties zijn super irritant tijdens het scripten.
Heb jij dan zin om iedere regel super veel spaties te zetten
Een beetje editor zet tabs om in spaties maar daar gaat deze discussie niet over 

Kyron schreef:Dat heb ik juist uitgezetEen beetje editor zet tabs om in spaties maar daar gaat deze discussie niet over
Das echt iri
