Hi you guys,
in the following insert the strtolower wont put the chars in lowercase.
Any ideas what i'm doing wrong?
the code:
$qryInsRel = "INSERT INTO \"tblrelations\ " (rid, vcfirstname,
vclastname, vccompany, vcfunction, nlangid, ngenderid, nuserid,
ntitleid, dtbirthdate, vcbankaccount, vcvatnr, vctraderegister nr)
VALUES(" . $relNextVal .", '" . $_POST["txtFirstNa me"] . "', '" .
strtolower($_PO ST["txtLastNam e"])
.. "', '" . $_POST["txtCompany "] . "', '" . $_POST["txtFunctio n"] . "',
'" . $_POST["txtLanguag e"] . "', '" . $_POST["txtGender"] . "', '" .
$_COOKIE["cUserID"] . "', '" . $_POST["txtTitle"] . "', '" . $bday .
"', '" . $_POST["txtBankaccount "] . "', '" . $_POST["txtVATNr"] . "',
'" . $_POST["txtTradeRe gNr"] . "')";
(btw i moved a bit from the layout of the code but the rest is exactly
what i have)
thx in advance,
kristof
in the following insert the strtolower wont put the chars in lowercase.
Any ideas what i'm doing wrong?
the code:
$qryInsRel = "INSERT INTO \"tblrelations\ " (rid, vcfirstname,
vclastname, vccompany, vcfunction, nlangid, ngenderid, nuserid,
ntitleid, dtbirthdate, vcbankaccount, vcvatnr, vctraderegister nr)
VALUES(" . $relNextVal .", '" . $_POST["txtFirstNa me"] . "', '" .
strtolower($_PO ST["txtLastNam e"])
.. "', '" . $_POST["txtCompany "] . "', '" . $_POST["txtFunctio n"] . "',
'" . $_POST["txtLanguag e"] . "', '" . $_POST["txtGender"] . "', '" .
$_COOKIE["cUserID"] . "', '" . $_POST["txtTitle"] . "', '" . $bday .
"', '" . $_POST["txtBankaccount "] . "', '" . $_POST["txtVATNr"] . "',
'" . $_POST["txtTradeRe gNr"] . "')";
(btw i moved a bit from the layout of the code but the rest is exactly
what i have)
thx in advance,
kristof
Comment