Je leest de salt over het hoofd....
maar bCrypt is nog beter inderdaad.
maar bCrypt is nog beter inderdaad.
Aarclay schreef:En hoe gebruik ik dat?number_format?
Marvinguich schreef:Www.php.net/number_formatEn hoe gebruik ik dat?Eerdere citaten tonen
Aarclay schreef:number_format?

Marvinguich schreef:Waarom kijk je niet direct de documentatieEn hoe gebruik ik dat?Eerdere citaten tonen
Aarclay schreef:number_format?

Aarclay schreef:Omdat ik dat niet snapteWaarom kijk je niet direct de documentatieEerdere citaten tonen
Marvinguich schreef:En hoe gebruik ik dat?Eerdere citaten tonen
Aarclay schreef:number_format?

Marvinguich schreef:Documentatie: [func]number_format[/func]Omdat ik dat niet snapteEerdere citaten tonen
Aarclay schreef:Waarom kijk je niet direct de documentatieEerdere citaten tonen
Marvinguich schreef:En hoe gebruik ik dat?Eerdere citaten tonen
Aarclay schreef:number_format?
Jasperxs schreef:Das dezelfde link die aar gaf.Documentatie: [func]number_format[/func]Eerdere citaten tonen
Marvinguich schreef:Omdat ik dat niet snapteEerdere citaten tonen
Aarclay schreef:Waarom kijk je niet direct de documentatieEerdere citaten tonen
Marvinguich schreef:En hoe gebruik ik dat?Eerdere citaten tonen
Aarclay schreef:number_format?
Aarclay schreef:Dat zeg jij altijd, als ze niet doen wat jij zegt. Ik vraag gewoon hoe het werkt. Ik kon uit die documentatie niet opmaken hoe ik , naar . omzette.En dan vraag wat je niet snapte? Als ik de documentatie leest kan elke beginner er wel mee overweg.
Echt, NOFI, maar het klinkt een beetje als een smoesje en luiheid.
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/elseif"]elseif[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]a[/COLOR][COLOR= #007700]]) &&[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]a[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"videotoevoegen"[/COLOR][COLOR= #007700])
{[/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/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/COLOR][COLOR= #007700]]))
{[/COLOR]
[COLOR= #0000BB]$core[/COLOR][COLOR= #007700]->[/COLOR]add_fout[COLOR= #007700]([/COLOR][COLOR= #DD0000]Vul een naam in[/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]ytid[/COLOR][COLOR= #007700]]))
{[/COLOR]
[COLOR= #0000BB]$core[/COLOR][COLOR= #007700]->[/COLOR]add_fout[COLOR= #007700]([/COLOR][COLOR= #DD0000]Vul een Youtube ID in[/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]ytgthumb[/COLOR][COLOR= #007700]]))
{[/COLOR]
[COLOR= #0000BB]$core[/COLOR][COLOR= #007700]->[/COLOR]add_fout[COLOR= #007700]([/COLOR][COLOR= #DD0000]Vul een grote Thumbnail in[/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]ytkthumb[/COLOR][COLOR= #007700]]))
{[/COLOR]
[COLOR= #0000BB]$core[/COLOR][COLOR= #007700]->[/COLOR]add_fout[COLOR= #007700]([/COLOR][COLOR= #DD0000]Vul een kleine Thumbnail in[/COLOR][COLOR= #007700]);
}[/COLOR]
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$core[/COLOR][COLOR= #007700]->[/COLOR]aantal_fouten[COLOR= #007700]() ==[/COLOR] [COLOR= #DD0000]0[/COLOR][COLOR= #007700])
{[/COLOR]
[URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"INSERT INTO videos (id, naam, ytid, ytgthumb, ytkthumb) VALUES ("[/COLOR] [COLOR= #007700].[/COLOR] [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/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][URL="http://www.php.net/isset"]isset[/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][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]ytid[/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][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]ytgthumb[/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][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]ytkthumb[/COLOR][COLOR= #007700]])) .[/COLOR] [COLOR= #DD0000]") "[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<div id="groen">Uw video is succesvol toegevoegd.</div>[/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]De volgende fouten zijn opgetreden:<br />[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$core[/COLOR][COLOR= #007700]->[/COLOR]weergeef_fouten[COLOR= #007700]();
}
}[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]
<div id="container">
Video toevoegen:<br />
<em>Hier kun je een video toevoegen.</em>
<br />
<form action="" method="post">
<table>
<tr>
<td style="width: 250px;">Naam:</td>
<td>
<input type="text" name="naam" value="" /> <br />
</td>
</tr>
<tr>
<td style="width: 250px;">Youtube ID:</td>
<td>
<input type="text" name="ytid" value="" /> <br />
</td>
</tr>
<tr>
<td style="width: 250px;">Youtube Thumbnail Groot:</td>
<td>
<input type="text" name="ytgthumb" value="" /> <br />
</td>
</tr>
<tr>
<td style="width: 250px;">Youtube Thumbnail Klein:</td>
<td>
<input type="text" name="ytkthumb" value="" /> <br />
</td>
</tr>
<tr>
<td style="width: 250px;"></td>
<td><input type="submit" name="submit" value="Toevoegen" /></td>
</tr>
</table>
</form>
</div>[/COLOR][COLOR= #007700];
}[/COLOR]
?> Aarclay schreef:Thanks.. Ja ik dacht dat je bij elke POST of GET een isset moest gebruiken en ik wist niet of dat binnen de query niet moest.Wat doet isset() in je query? Heb je al eens gekeken wat dat doet?
Dat geeft niets anders terug dan een true of false, en in een query heb je daar weinig aan, op deze manier dan geïmplementeerd.
Desire schreef:Je moet isset gebruiken als je wilt weten of POST of GET gebruikt zijn. Dit heb je al eerder in je if statement gedaan dus je hoeft het niet meer in de query te doen.Dat geeft niets anders terug dan een true of false, en in een query heb je daar weinig aan, op deze manier dan geïmplementeerd.Eerdere citaten tonen
Aarclay schreef:Wat doet isset() in je query? Heb je al eens gekeken wat dat doet?
Thanks.. Ja ik dacht dat je bij elke POST of GET een isset moest gebruiken en ik wist niet of dat binnen de query niet moest.
