[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 379: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Webmasterplein.net • Toon onderwerp - Kalender
Pagina 1 van 1

Kalender

BerichtGeplaatst: 23 jan 2009 19:15
door Weeeyaa

Re: Kalender

BerichtGeplaatst: 24 jan 2009 02:06
door libia
wat staat er in $gegevens? (doe eens een var_dump)

Re: Kalender

BerichtGeplaatst: 24 jan 2009 18:35
door Weeeyaa
Hoi,

De uitkomst is de volgende:
array(2) { [0]=> string(2) "11" ["datum_1"]=> string(2) "11" }

Er gaat dus iets fout bij het maken van de $gegevens. Wie kan me helpen dit op te lossen? :P
nogmaals, m'n tabel ziet er als volgt uit:
| id | datum_1 | datum_2 | datum_3 |
| 1 | 1 | 1 | 2009 | -> een januari 2009
| 2 | 11 | 1 | 2009 | -> elf januari 2009
| 3 | 26 | 9 | 2009 | -> zesentwintig september 2009

Misschien doe ik iets fout bij het selecteren uit de database?

Groet,
Thijs

Re: Kalender

BerichtGeplaatst: 24 jan 2009 20:07
door Derk

Re: Kalender

BerichtGeplaatst: 25 jan 2009 10:18
door Weeeyaa
Hallo,

Bedankt! het werkt :)
Nu kan m'n website bijna online, kunnen jullie zien waar al die moeite goed voor was :P

Groetjes,
Thijs

Re: Kalender

BerichtGeplaatst: 06 feb 2009 22:00
door Weeeyaa
Nog een vraagje over die kalender:
ik heb een array met de getallen 01,02,03,04...10,11...20,...30

Nu wil ik dat elke voorgaande nul wordt weggepoetst (dus 01 wordt 1 en 10 blijft 10).

Wie kan mij helpen?

Alvast bedankt!

Groet,
Thijs

Re: Kalender

BerichtGeplaatst: 06 feb 2009 23:26
door KillerSponge

Re: Kalender

BerichtGeplaatst: 07 feb 2009 17:44
door Weeeyaa
Volgens mij wekt dat in ieder geval niet voor mijn doel.
Ik heb in de database dus staan 01, 02...
die voorafgaande nul is nodig zodat 11 niet voor 6 komt als er gesorteerd wordt.

De kalender waar het hier om gaat laat de dagen echter zien als 1, 2...

Hij maakt nu dus geen link omdat 01 niet gelijk is aan 1

De website kunnen jullie zien op: http://www.gvleonidas.nl
De kalender op de homepage en de kalender onder het kopje algemeen maken gebruik van dezelfde database. Als een datum onder algemeen->kalender staat is het de bedoeling dat er een link in de kalender op de homepage komt.

Bedankt!!

Thijs

Edit: Als tabeltype heb ik trouwens Varchar omdat bij Int die 0 sowieso al wordt weggehaald.

Re: Kalender

BerichtGeplaatst: 07 feb 2009 18:16
door Weeeyaa

Re: Kalender

BerichtGeplaatst: 07 feb 2009 18:21
door Remi
Je kan altijd nog preg_replace gebruiken

Re: Kalender

BerichtGeplaatst: 07 feb 2009 20:50
door Derk
Je probleem zit hem dus in de ifjes. Als je ervoor zorgt dat je vlak nadat je het uit de datbase haalt er een int van maakt, heb je dit probleem niet meer. Je kunt daarna als je dat wilt wel de nullen weer toevoegen.

Re: Kalender

BerichtGeplaatst: 08 feb 2009 11:54
door KillerSponge
Ik snap het probleem niet helemaal... Als je met MySQL ordened zet hij gewoon netjes de 7 voor de 11 hoor :P

Re: Kalender

BerichtGeplaatst: 08 feb 2009 13:18
door Derk

Re: Kalender

BerichtGeplaatst: 08 feb 2009 13:39
door Weeeyaa
't was inderdaad stom van mij om niet voor het databasetype int te kiezen. Ik heb dit nu gedaan en warempel, het werkt :D

Nogmaals, jullie kunnen zien waar alle moeite goed voor was op www.gvleonidas.nl

Groet,
Thijs