[eluser]parham90[/eluser]
Hello there,
I've got two questions; one for each library! :-)
First of all, in the database library it is said that the values, when inserted using the active record method, are automatically escaped. I have inserted values into a table, and when I look at the table, I see nothing escaped... is it only for HTML tags and such?
Also, should I sanitize the data (make sure it is not going to mess with the query sent to the database), or it will be done automatically, too?
My second question is about the file uploading class, as promised! :-)
Imagine we have a file called image1.jpg in the upload folder. I go and upload a file with the same name, and since in the PHP script overwrite is false, it won't be overwritten. All fine up to this point. However, will the $this->upload->data() function return the file name in the uploader's computer (I.E. image1.jpg), or the renamed file name?
Thanks!