Je hebt wel je kolom DATETIME gemaakt toch? Want als je TEXT of VARCHAR hebt dan werkt het inderdaad niet goed.
Kleine Vragen Topic #1
Ik heb dit even snel gemaakt ik weet niet of het klopt...?
Ik weet totaal niet of dit juist is. Maar ik wildat als ze ?id=20 ingeven ietd echoën en dan gewoon al de rest gewoon iets anders
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]])){[/COLOR]
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #0000BB]20[/COLOR][COLOR= #007700]){[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]Welkom, je hebt de juiste ID ingegeven![/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]Dit id is het niet[/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]Geef wel een id op![/COLOR][COLOR= #007700];
}[/COLOR]
?> Ik weet totaal niet of dit juist is. Maar ik wildat als ze ?id=20 ingeven ietd echoën en dan gewoon al de rest gewoon iets anders

Test het uit zou ik zeggen..
Sanderc schreef:Ik heb dit even snel gemaakt ik weet niet of het klopt...?
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]])){[/COLOR]
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #0000BB]20[/COLOR][COLOR= #007700]){[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]Welkom, je hebt de juiste ID ingegeven![/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]Dit id is het niet[/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]Geef wel een id op![/COLOR][COLOR= #007700];
}[/COLOR]
?> Ik weet totaal niet of dit juist is. Maar ik wildat als ze ?id=20 ingeven ietd echoën en dan gewoon al de rest gewoon iets anders

Vertaal of test het. Waarom zou het niet werken?
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]])){[/COLOR] [COLOR= #FF8000]// Als ?id= is aangemaakt.[/COLOR]
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #0000BB]20[/COLOR][COLOR= #007700]){[/COLOR] [COLOR= #FF8000]// Als ?id=20[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]Welkom, je hebt de juiste ID ingegeven![/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// echo[/COLOR]
[COLOR= #007700]}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR] [COLOR= #FF8000]// anders[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]Dit id is het niet[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// echo[/COLOR]
[COLOR= #007700]}
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR] [COLOR= #FF8000]// anders (als ?id= niet aangemaakt is.[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]Geef wel een id op![/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// echo[/COLOR]
[COLOR= #007700]}[/COLOR]
?> Sjoerd schreef:Heb geen host daarom ...Test het uit zou ik zeggen..
Als je een localhost installeert (bijvoorbeeld wampserver.com) dan kun je op je eigen computer je PHP scripts testen, als je dat nog niet wist. 

Ik had xammo gedaan maar dat vond in te stom, Ik kom zal morgen die site eens proberen! Bedankt
Sanderc schreef:xammo? Bedoel je xampp? Ze zijn bijna allemaal hetzelfde, en ik vind Xampp persoonlijk iets beter werken nogIk had xammo gedaan maar dat vond in te stom, Ik kom zal morgen die site eens proberen! Bedankt

Sanderc schreef:Je moet het even doorhebben, maar het is best handig hoor.Ik had xammo gedaan maar dat vond in te stom, Ik kom zal morgen die site eens proberen! Bedankt

Wat vinden jullie beter? het profiel zoals hier: http://www.industrialgaming.net/profile-1.html
of
of
Spoiler tonen
De Youtube video klopt niet helemaal!
Afbeelding niet beschikbaarDe bron kon niet worden geladen (tmp.sevvlor.com).Bron openen ↗
Afbeelding niet beschikbaarDe bron kon niet worden geladen (tmp.sevvlor.com).Bron openen ↗Sevvlor schreef:Wat vinden jullie beter? het profiel zoals hier: http://www.industrialgaming.net/profile-1.html
of
Spoiler tonen
De Youtube video klopt niet helemaal!
Afbeelding
Afbeelding

Ik gebruik nu een Jquery Lightbox.
Nu wil ik 1 foto weergeven, en als ze er op klikken dat ze dan naar de volgende fotos kunnen.
ik heb de fotos in 1 map staan.. hoe doe ik dit.. ?
Nu wil ik 1 foto weergeven, en als ze er op klikken dat ze dan naar de volgende fotos kunnen.
ik heb de fotos in 1 map staan.. hoe doe ik dit.. ?
Marvinguich schreef:PHP?Ik gebruik nu een Jquery Lightbox.
Nu wil ik 1 foto weergeven, en als ze er op klikken dat ze dan naar de volgende fotos kunnen.
ik heb de fotos in 1 map staan.. hoe doe ik dit.. ?
Haal alle fotos op. Toon de eerste. Maak dan een knop volgende, met een GET met de foto naam in de GET.
scandir() kan ook erg handig zijn... 

Als ik dit heb op pagina1 :
En ik heb dit op pagina 2
Hoe komt het dat dat werkt zonder een include of iet anders?
[COLOR= #0000BB]<?php
$naam[/COLOR][COLOR= #007700]=[/COLOR] [COLOR= #DD0000]Sander[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/setcookie"]setcookie[/URL][COLOR= #007700]([/COLOR]naam[COLOR= #007700],[/COLOR] [COLOR= #0000BB]$naam[/COLOR][COLOR= #007700],[/COLOR] [URL="http://www.php.net/time"]time[/URL] [COLOR= #007700]() +[/COLOR][COLOR= #0000BB]3600[/COLOR][COLOR= #007700]);[/COLOR]
?> En ik heb dit op pagina 2
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Welkom terug [/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_COOKIE[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]![/COLOR][COLOR= #007700];[/COLOR]
?> Hoe komt het dat dat werkt zonder een include of iet anders?