Welcome Guest, Not a member yet? Register   Sign In
GamingFusion
#11

[eluser]ray73864[/eluser]
means exactly what it says, it can't find a column called 'password' in the 'users' table.
#12

[eluser]Zeeshan Rasool[/eluser]
Hi i have my validation code here, Hope you get some help.

This my view... not full code..
Code:
<td class="td_padding_heading">User Name<span class="Red">*</span></td>
<td class="input_margin">
                                              
$data = array(
'name'        => 'username',
'id'          => 'username',
'value'       =>
'maxlength'   => '200',
'size'        => '55',
//'style'       => 'width:80%',
);
echo form_input($data);?&gt;
</td>
</tr>

This is controller part.

Code:
$rules['username']             = "required|alpha_numeric|alpha_dash|min_length[6]|max_length[20]";
$rules['fullname']             = "required";
$rules['slogan']             = "required";                    
                    
$this->validation->set_rules($rules);
                    
$fields['username']         = 'User Name';
$fields['fullname']         = 'Full Name';
$fields['slogan']             = 'Slogan';
$fields['email']             = 'Email';
$fields['phone']             = 'Phone';
$this->validation->set_fields($fields);
                        
if ($this->validation->run() == FALSE)
{
$newdata    = array('Flag'  => 'Form Validation Error! Please try again!');
$this->session->set_userdata($newdata);
}
else
{
///your next func part here....
#13

[eluser]GamingFusion[/eluser]
ray73864, dude thats the thing that column is in the database
#14

[eluser]GamingFusion[/eluser]
I found the problem i had the password column in the table but i had an extra "s"
#15

[eluser]GamingFusion[/eluser]
ok i went over the encryption class, and now i got another question, what would be the best way to encrypt password that are entered by the user
#16

[eluser]jpi[/eluser]
You can use the native PHP function sha1.
#17

[eluser]GamingFusion[/eluser]
ok and how would i work that into a registration form with password and passconf fields that both go to the same column in the database




Theme © iAndrew 2016 - Forum software by © MyBB