Welcome Guest, Not a member yet? Register   Sign In
Database Library and File uploading Library Questions
#1

[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!


Messages In This Thread
Database Library and File uploading Library Questions - by El Forum - 01-11-2010, 04:29 AM
Database Library and File uploading Library Questions - by El Forum - 01-11-2010, 05:06 AM
Database Library and File uploading Library Questions - by El Forum - 01-11-2010, 05:12 AM
Database Library and File uploading Library Questions - by El Forum - 01-11-2010, 05:18 AM
Database Library and File uploading Library Questions - by El Forum - 01-11-2010, 05:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB