Welcome to WebmasterWorld Guest from 54.147.44.93

Forum Moderators: open

Message Too Old, No Replies

Storing Session Variable to MySQL

     

TheSnowSnake

3:54 pm on May 17, 2011 (gmt 0)



I want to store a session variable I added to a user profile in community builder using logos and joomla 1.6 here is a eg:


NSERT INTO feedback (ID_feedback,
client_ref,
FBlastname,
FBphone,
FBcity,
author,

FBrate,
FBcomment,
FB_date )

values (
NULL,
'<input name="client.Idclient" hidden="yes" />',
'<input name="LastName" hidden="yes"/>',
'<input name="Phone" hidden="yes" />',
'<input name="City" hidden="yes" required="n"/>',
<code type = "user" />,

'<input title="Feedback Rating" type= "list" options="Good,1;Fair,2;Poor,3" />',
'<input title="Comment" input= "textarea" required="y" />',
'<input name="FB_date" type="date" out="Y-m-d" default="today" />'
)
**** this all works well but I would like to sore the users company name form the profile.

maybe something like this..

$sql ="UPDATE feedback SET name = '$company', $company = '$company'


Anyone got a idea how 2 do this. I'm very new to all this.
TNX in advance for looking.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month