[PHP-WIN] using php apc functions

2010-05-04 Thread Alexander Schunk
Hello, i want to use the php APC Functions. I am using xampp server and latest php. The Windows dll for APC is in the extensions directory and the extension is configured in the php.ini. However, i still get an error that php does not find the fuction apc_add: $myvar = 'hell world'; $sto

[PHP-WIN] how to access class members

2010-05-04 Thread Alexander Schunk
Hello, i have a question: How to access class members? I have the following class definition: class Mitarbeiter{ public $name = 'meier'; public $alter = '50'; public $gehalt = '2000'; public $abteilung = 'programmierung'; function printMe

[PHP-WIN] MySQL database query passwort and username

2010-04-29 Thread Alexander Schunk
Hello, i am writing a login script with php and mysql: while($dbbenutzer = mysql_fetch_row($sqlbenutzername)) while($dbpasswort = mysql_fetch_row($sqlpasswort)){ echo $dbbenutzer[$i]; echo $dbpasswort[$j]; if($benutzername == $dbbenutzer and $pass == $dbpas

[PHP-WIN] proofing login success using sessions

2010-04-23 Thread Alexander Schunk
Hello, i have certain fields in a database including username and passwort. The username and passwort are in the first two fields of the database. Now, on the login page, i want to check the username and passwort provided by the user with the values in the database. I have the following code:

[PHP-WIN] Problem with php and MySQL: inserting strings into database

2010-04-22 Thread Alexander Schunk
Hello, i have a problem with php and mysql when inserting strings into a database. I have the following syntax: $sqlinsert = "INSERT INTO werte ('benutzername', 'passwort', 'name', 'vorname', 'Geburtsdatum', 'strasse', 'plz', 'ort', 'email') VALUES('$_POST['benutzername']', '$_POST['passwort']',