[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/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]Probleem
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]Probleem

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

[PHP]Probleem

Berichtdoor Rik » 24 sep 2005 15:37

Hallo ,ik zit met een probleem.
Ik krijg een witte pagina...
Mijn code:
[syntax="php"]<html>
<head>
<title>Welkom op de MySQL testpagina</title>
</head>
<body bgcolor="#EEEEEE" aLink="#000000" vLink="#000000" link="#000000"><center><?php
$gebruikersnaam = $_POST['gebruikersnaam'];
$wachtwoord = $_POST['wachtwoord'];
if ((gebruikersnaam="Bloe") And (wachtwoord="*Censored*")) {
print("Welkom Bloe!<br>Vul A.U.B. gegevens in.<br>
<form action='mysql_test_schrij.phpf' method='post'>
<input type='text' name='waarde' value='Vul hier iets in'>
<input type='Submit' name='submit' value='Verzenden!'>
</form>");
} else {
print("Vul A.U.B. het goed wachtwoord in.");
}
?>
</body>
</html>[/syntax]
:help:
Alvast bedankt ,
Bloe
Laatst bijgewerkt door Rik op 01 jan 1970 01:00, in totaal 1 keer bewerkt.
Avatar gebruiker
Rik
wmpr
 
Berichten: 1576
Geregistreerd: 11 jun 2005 17:59

Berichtdoor KillerSponge » 24 sep 2005 15:49

Als ik jou was, zou ik ; achter de regels zetten Razz
Blabla en andere onzin - http://killersponge.nl
Avatar gebruiker
KillerSponge
Beheerder
Beheerder
 
Berichten: 14456
Geregistreerd: 24 aug 2004 13:05

Berichtdoor Rik » 24 sep 2005 15:50

Tnx dat vergeet ik altijd maar kan 't daar aan liggen?
Edit: ; erachter gezet.
Werkt nog steeds niet.
Laatst bijgewerkt door Rik op 01 jan 1970 01:00, in totaal 2 keer bewerkt.
Avatar gebruiker
Rik
wmpr
 
Berichten: 1576
Geregistreerd: 11 jun 2005 17:59

Berichtdoor Stef » 24 sep 2005 15:53

Ja, die kans is groot.
Avatar gebruiker
Stef
wmpr
 
Berichten: 5575
Geregistreerd: 27 nov 2003 21:51

Berichtdoor KillerSponge » 24 sep 2005 16:12

Hm, ik zou ook die if regel even aanpassen -_-:

if ( $var == 'waarde' AND $var2 == 'waarde2' )

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

Berichtdoor Rik » 24 sep 2005 19:46

Waarom maak ik toch 20 keer dezelfde fout. Embarassed
Bedankt.
<hr />
Nu zit ik weer met een probleem. :irri:
[syntax="php"]<html>
<head>
<title></title>
</head>
<body>
<?php
$host="localhost"
$naam1="bloe"
$ww="*Censored*"
$naam2="bloe"
$tabelnaam="test"
$waarde = $_POST['waarde']

$verbinding = mysql_connect($host,$naam1,$ww)
$doen="CREATE TABLE [IF NOT EXISTS] test (TestID INT NOT NULL AUTO_INCREMENT PRIMARY KEY test VARCHAR(50))
INSERT INTO test(1) VALUE ($waarde)"


mysql_db_query ($naam2,$doen,$verbinding)
mysql_close
?>
Als alles goed verlopen is is 't nu opgeslagen.
</body>
</html>[/syntax]
De MySQL Gebruikersnaam en WW enzo kloppen.
Ik heb zo'n vermoeden dat 't aan de MySQL query ligt.
Daar ben ik net mee bezig.

Bloe
Avatar gebruiker
Rik
wmpr
 
Berichten: 1576
Geregistreerd: 11 jun 2005 17:59

Berichtdoor KillerSponge » 24 sep 2005 20:26

Ik moet je eerlijk bekennen dat ik niet precies weet hoe dat zit met meerdere queries achter elkaar... ik heb er altijd maar 1...

Wat je wel kan doen is van elk regeltje een aparte query maken.
Blabla en andere onzin - http://killersponge.nl
Avatar gebruiker
KillerSponge
Beheerder
Beheerder
 
Berichten: 14456
Geregistreerd: 24 aug 2004 13:05

Berichtdoor M-D » 24 sep 2005 23:54

Als je er een ; tussen zet (de query's) zou hij het goed moeten doen...

Ook raad ik je aan om error_reporting(iets); bovenaan je pagina neer te zetten, zodat je ziet wat de errors zijn.

Bij query's or die(mysql_error()) erachter, zodat je ziet wat daarbij de fout is.


Let op
Doe dit alleen tijdens het maken, en haal het weg wanneer de site echt publiek wordt, je wilt namelijk niet dat andere mensen dat soort errrors zien.
Boe
M-D
wmpr
 
Berichten: 102
Geregistreerd: 06 jan 2005 01:20
Woonplaats: localhost

Berichtdoor Rik » 25 sep 2005 07:22

Nu ik er dit:

[syntax="php"]<html>
<head>
<title></title>
</head>
<body>
<?php
$host="localhost"
$naam1="bloe"
$ww="*Censored*"
$naam2="bloe"
$tabelnaam="test"
$waarde = $_POST['waarde']

$verbinding = mysql_connect($host,$naam1,$ww)
$doen="CREATE TABLE [IF NOT EXISTS] test (TestID INT NOT NULL AUTO_INCREMENT PRIMARY KEY test VARCHAR(50));
INSERT INTO test(1) VALUE ($waarde)"


mysql_db_query ($naam2,$doen,$verbinding) or die("Fout")
mysql_close
?>
Als alles goed verlopen is is 't nu opgeslagen.
</body>
<html>[/syntax]
Van heb gemaakt krijg ik nog steeds een lege pagina.
Ik heb ook met "or die (mysql_error())" en "error reporting()" geprobeerd.
Toen kreeg ik weer een lege pagina.
Alvast bedankt voor de hulp.

<hr />Alweer dezelfde fout... Embarassed
; erachter zetten.
Nu krijg ik de error te zien.
Laatst bijgewerkt door Rik op 01 jan 1970 01:00, in totaal 1 keer bewerkt.
Avatar gebruiker
Rik
wmpr
 
Berichten: 1576
Geregistreerd: 11 jun 2005 17:59

Berichtdoor Derk » 25 sep 2005 09:39

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

Berichtdoor mosymuis » 06 okt 2005 09:15

Screw social life, be a spammer!
>> <<
Avatar gebruiker
mosymuis
wmpr
 
Berichten: 37
Geregistreerd: 22 dec 2004 18:32
Woonplaats: Nijmegen de gekste


Keer terug naar PHP, ASP, SQL



cron