Hi dd,
thank you for your response, but the problem is the same.
I've tried to use the "$_REQUEST["myparameter"];" in the class, as this:
************begin of code *******************
"* If you pass multiple parameters copy the line multiple times
*
* $myparameter = $_REQUEST["myparameter"];
*/
if (isset($_REQUEST["login"])) { $this->login_user = $_REQUEST["login"];
}
else {
$this->login_user = "default_user";
}
***************** and this: ************
class mysrc extends drasticSrcMySQL {
protected function select(){
$res = mysql_query(" SELECT * from $this->table where realname = '$this->login_user' ". $this->orderbystr, $this->conn) or die(" SELECT * from $this->table ". $this->wherestr . $this->orderbystr . mysql_error());
return ($res);
}
protected function metadata(){
$res = mysql_query(" SELECT * FROM $this->table LIMIT 1 " . $this->orderbystr, $this->conn) or die(mysql_error());
return ($res);
}
}
**********end of code ***********
the "default_user" line is always displayed, even for the request
test.php?login=another_user
have you got an idea ?
best regards ;
yves