[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 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/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/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 - Index met 1 ophogen
aan alle goede dingen komt een eind, webmasterplein.net 2003 - 2013
wij danken jullie voor al mooie momenten die dankzij dit forum ontstonden - Derk, Rutger en Stef

Index met 1 ophogen

Je komt er niet helemaal uit bij het scripten? Übergoede functie geschreven? Alles met betrekking tot scripting, kun je hier terecht.

Index met 1 ophogen

Berichtdoor dpd » 26 okt 2005 15:15

Blast!
Avatar gebruiker
dpd
wmpr
 
Berichten: 57
Geregistreerd: 19 okt 2005 08:33
Woonplaats: Nijmegen

Berichtdoor vosManz » 26 okt 2005 15:37

Avatar gebruiker
vosManz
wmpr
 
Berichten: 139
Geregistreerd: 17 apr 2005 21:26

Berichtdoor Derk » 26 okt 2005 15:41

Afbeelding
Avatar gebruiker
Derk
Beheerder
Beheerder
 
Berichten: 12634
Geregistreerd: 27 nov 2003 19:50
Woonplaats: Houten

Berichtdoor dpd » 26 okt 2005 15:46

Dat bedoel ik niet, uiteraard is die Id auto_increment. Hij wordt dus ook daadwerkelijk met 1 opgehoogd wanneer ik een nieuwe vacature aanmaak. Het gaat erom dat ik dus de Id uitlees, deze met 1 moet verhogen en dán weergeven, zodat de gebruiker weet wat het nummer van de vacature wordt.

Dus: vacature met Id 1 staat er al in, ik ga nu vacature 2 aanmaken en haal dus de Id van vacature 1 op en hoog deze met 1 op. Hoe?
Blast!
Avatar gebruiker
dpd
wmpr
 
Berichten: 57
Geregistreerd: 19 okt 2005 08:33
Woonplaats: Nijmegen

Berichtdoor vosManz » 26 okt 2005 18:25

Hmm... dat zou eigenlijk gewoon moeten werken met $volgende = $result->Id+1; oid...

Moet het perce opgehoogd worden voordat de query is uitgevoerd? Als het ook na de insert mag heeft php er namelijk een aparte functie voor, namelijk
Avatar gebruiker
vosManz
wmpr
 
Berichten: 139
Geregistreerd: 17 apr 2005 21:26

Berichtdoor Derk » 26 okt 2005 19:44

ja, maar dan heeft hij dus de facature al in de database. Hij wil het id weten voordat het in de database komt.
Afbeelding
Avatar gebruiker
Derk
Beheerder
Beheerder
 
Berichten: 12634
Geregistreerd: 27 nov 2003 19:50
Woonplaats: Houten

Berichtdoor dpd » 27 okt 2005 07:49

Ik moet de Id hebben van de komende vacature. En nee, $result->Id+1 werkt dus niet.
Aangezien ik de huidige, hoogste Id op kan halen, moet dat toch niet zo lastig zijn om er daar 1 bij op te tellen? Very Happy
Blast!
Avatar gebruiker
dpd
wmpr
 
Berichten: 57
Geregistreerd: 19 okt 2005 08:33
Woonplaats: Nijmegen

Berichtdoor Stef » 27 okt 2005 15:54

Avatar gebruiker
Stef
wmpr
 
Berichten: 5575
Geregistreerd: 27 nov 2003 21:51

Berichtdoor Derk » 27 okt 2005 20:50

Afbeelding
Avatar gebruiker
Derk
Beheerder
Beheerder
 
Berichten: 12634
Geregistreerd: 27 nov 2003 19:50
Woonplaats: Houten

Berichtdoor dpd » 28 okt 2005 07:53

Blast!
Avatar gebruiker
dpd
wmpr
 
Berichten: 57
Geregistreerd: 19 okt 2005 08:33
Woonplaats: Nijmegen

Berichtdoor KillerSponge » 28 okt 2005 08:50

Ik heb eerder zo'n soort probleem gehad... Het zou toen in principe moeten werken, en ik snap nog steeds niet waarom het niet werkte, maar ik heb wel een work-around gevonden:

[syntax="php"]
$id_eerste = $data->id;
$id_tweede = $id_eerste + 1;
[/syntax]

En dan $id_tweede weergeven... Ik weet het, het klinkt zeer stom en omslachtig, maar dat werkte toen, vraag me niet waarom Neutral
Blabla en andere onzin - http://killersponge.nl
Avatar gebruiker
KillerSponge
Beheerder
Beheerder
 
Berichten: 14456
Geregistreerd: 24 aug 2004 13:05

Berichtdoor dpd » 28 okt 2005 08:52

Woohoo! Werkt.. Suf zeg dat dat eerder niet werkte.

Dankje :aanbid:
Blast!
Avatar gebruiker
dpd
wmpr
 
Berichten: 57
Geregistreerd: 19 okt 2005 08:33
Woonplaats: Nijmegen

Berichtdoor KillerSponge » 28 okt 2005 09:15

Lol ^^

Nouja, blij dat het werkt Razz
Blabla en andere onzin - http://killersponge.nl
Avatar gebruiker
KillerSponge
Beheerder
Beheerder
 
Berichten: 14456
Geregistreerd: 24 aug 2004 13:05

Berichtdoor Derk » 28 okt 2005 15:11

Afbeelding
Avatar gebruiker
Derk
Beheerder
Beheerder
 
Berichten: 12634
Geregistreerd: 27 nov 2003 19:50
Woonplaats: Houten

Berichtdoor dpd » 28 okt 2005 15:13

Blast!
Avatar gebruiker
dpd
wmpr
 
Berichten: 57
Geregistreerd: 19 okt 2005 08:33
Woonplaats: Nijmegen

Berichtdoor Derk » 28 okt 2005 15:18

Afbeelding
Avatar gebruiker
Derk
Beheerder
Beheerder
 
Berichten: 12634
Geregistreerd: 27 nov 2003 19:50
Woonplaats: Houten

Berichtdoor dpd » 28 okt 2005 15:45

Blast!
Avatar gebruiker
dpd
wmpr
 
Berichten: 57
Geregistreerd: 19 okt 2005 08:33
Woonplaats: Nijmegen


Keer terug naar PHP, ASP, SQL



cron