customcontent_loginname question [solved]
Posted: Fri Jun 10, 2011 5:43 pm
Hello,
I have a form witch only registered users can access (thanks to the guide at http://calguy1000.com/uploads/1/Hiding_ ... e-pdf.html) and the content of the form is saved in the database. Now i want to add the username to each record, so i tried something like:
$SQL = " INSERT INTO mytable ";
$SQL = $SQL . " (name, somevalue, username) VALUES ";
$SQL = $SQL . " ('$name', '$somevalue', '$customcontent_loginname') ";
but the username field is always empty (rest of the data is saved).
I'm new to everything (php, CMSMS, smarty) so can someone please explain how i can save the username in the database (later i will need it to select only the records the registered user has entered).
Thank you.
I'm using FEU 1.12.16 and CustomContent 1.7.3
I have a form witch only registered users can access (thanks to the guide at http://calguy1000.com/uploads/1/Hiding_ ... e-pdf.html) and the content of the form is saved in the database. Now i want to add the username to each record, so i tried something like:
$SQL = " INSERT INTO mytable ";
$SQL = $SQL . " (name, somevalue, username) VALUES ";
$SQL = $SQL . " ('$name', '$somevalue', '$customcontent_loginname') ";
but the username field is always empty (rest of the data is saved).
I'm new to everything (php, CMSMS, smarty) so can someone please explain how i can save the username in the database (later i will need it to select only the records the registered user has entered).
Thank you.
I'm using FEU 1.12.16 and CustomContent 1.7.3