[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/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 - php vraag if conditie
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

php vraag if conditie

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

php vraag if conditie

Berichtdoor john » 22 mei 2005 18:05

hoi
wie kan mij helpen met de onderstaande script, ik had al antwoorden gehad maar komt er neit uit, (beginner php) het script kijkt wie er jarig is. alleen als de persoon overleden is mag hij het niet weergeven, of dat hij overleden is op die datum,
de opgegeven velden heb ik niet verzonnen maar komt uit een genealogie programma,

in het veld (T0T_Datum) is geboortedatum, het veld (geboorte) is overlijdens datum,
[syntax="php"]
CREATE TABLE Persoon (
Voornaam text NOT NULL, //volledige naam
Tot_Datum text NOT NULL //geboorte datum
Geboorte text NOT NULL //Overleden datum
) TYPE=MyISAM;

------------------------------------------------ */

// Hierna hoef je niets te veranderen!
// -----------------------------------

@mysql_connect($MySQLHost,$MySQLGebruikersVoornaam,$MySQLWachtwoord) or die("Er kon geen verbinding met de MySQL database worden gemaakt.");
@mysql_select_db($MySQLDatabase) or die("De MySQL database kon niet worden geselecteerd.");

$aantal = 0;
echo("Vandaag feliciteren wij:<br><br>");
$Verjaardagen = mysql_query("SELECT * FROM $MySQLTabel WHERE Tot_Datum LIKE '".date("d-m-Y")."' ORDER BY Voornaam") or die(mysql_error());
while($Persoon = mysql_fetch_object($Verjaardagen)) {
if ($list-> Geboorte == "") {
list($Dag) = explode("-",$Persoon->Tot_Datum);
echo("$Persoon->Voornaam<br>\n");
$aantal++;
}
}
if($aantal <> "0") { echo("Geen Verjaardagen."); }
?>[/syntax]
[mod="Anthony"]PHP syntax aan[/mod]
john
wmpr
 
Berichten: 3
Geregistreerd: 11 apr 2005 20:17

Berichtdoor Anonymous » 28 mei 2005 19:26

Anonymous
 

Berichtdoor mats » 28 mei 2005 20:06

[syntax="php"]
<?
@mysql_connect($MySQLHost,$MySQLGebruikersVoornaam,$MySQLWachtwoord) or die("Er kon geen verbinding met de MySQL database worden gemaakt.");
@mysql_select_db($MySQLDatabase) or die("De MySQL database kon niet worden geselecteerd.");

$aantal = 0;
echo("Vandaag feliciteren wij:<br><br>");
$Verjaardagen = mysql_query("SELECT * FROM $MySQLTabel WHERE Tot_Datum LIKE '".date("d-m-Y")."' ORDER BY Voornaam") or die(mysql_error());
while($Persoon = mysql_fetch_object($Verjaardagen)) {
if ($list-> Geboorte == "") {
list($Dag) = explode("-",$Persoon->Tot_Datum);
echo("$Persoon->Voornaam<br>\n");
$aantal++;
}
}
if($aantal <> "0") { echo("Geen Verjaardagen."); }
?> [/syntax] bij mij werkt het zo
Avatar gebruiker
mats
wmpr
 
Berichten: 3748
Geregistreerd: 19 sep 2004 12:00


Keer terug naar PHP, ASP, SQL



cron