January 2, 201115 yr I want to save data in mysql database.all datas are saved successfullly,but when any user register the account, option box details(male or female)not save in table .link of my client site is http://lphosting.cjb.net/joomla1/index.php .I want your help.I am currently working in joomla and not know much about it.please help me .data is under.. http://hotfile.com/dl/93765403/e7f34e7/registration.rar.html details are attached... i want to insert data in table named jos_js_job_userroles with 1 for male and 2 for female. The download link of files are as: http://hotfile.com/dl/93765403/e7f34e7/registration.rar.html please edit under this file...(registration) Edited January 2, 201115 yr by HACKERSMIND
January 3, 201115 yr You could do with posting your entire code to be sure. Is no value at all going into the gender column?
January 3, 201115 yr Author yes..no value is going through gender option ! i was already attached the file.Please find here!
January 3, 201115 yr yes..no value is going through gender option ! i was already attached the file.Please find here! I did look at the attached files. However, I just looked again.... See line 736 in controller.php: "\n SET gender=$gender" . Try this "\n SET gender='$gender'" . Let me know if that works
January 3, 201115 yr Author Not working !! if you want, i will upload the whole joomla folder ,please help....
January 3, 201115 yr I'm not familiar with joomla. Where do you define the $gender variable? In your html, the value for gender is 1 for male and 2 for female. Are you trying to put a 1 or 2 into your database? Also - what format is the gender column in your database?
January 3, 201115 yr In default.php line 145 - you need to remove the " after checked. Where is the index.php file from your login page? Edited January 3, 201115 yr by mrsminkie
January 3, 201115 yr Author I'm not familiar with joomla. Where do you define the $gender variable? In your html, the value for gender is 1 for male and 2 for female. Are you trying to put a 1 or 2 into your database? Also - what format is the gender column in your database? Gender value is store in form of int .1 for male and 2 for female.
Create an account or sign in to comment