Welcome Guest, Not a member yet? Register   Sign In
How to map upload.php and my table information
#5

[eluser]jaswinder_rana[/eluser]
Sorry, I wasn't clear. What I meant was, when I pass it $d array, it has list of columns and their values. But, some columns in table are type INT and some are type VARCHAR.

How will it know when to wrap values in ' (single quotes) for VARCHAR and when NOT to (int or when I pass, say, now() for date)?

For example
Code:
$d = array(
     file_name      => '',
     file_type      => '',
     file_path      => '',
     full_path      => '',
     raw_name       => '',
     orig_name      => '',
     file_ext       => 2.2,//DECIMAL
     file_size      => '',
     is_image       => 0,//INT
     image_width    => 11,//INT
     image_height   => 22,//INT
     image_type     => '',
     image_size_str => ''
   );


Messages In This Thread
How to map upload.php and my table information - by El Forum - 12-17-2008, 05:24 PM
How to map upload.php and my table information - by El Forum - 12-17-2008, 06:44 PM
How to map upload.php and my table information - by El Forum - 12-17-2008, 07:08 PM
How to map upload.php and my table information - by El Forum - 12-17-2008, 07:25 PM
How to map upload.php and my table information - by El Forum - 12-17-2008, 07:30 PM
How to map upload.php and my table information - by El Forum - 12-17-2008, 07:37 PM
How to map upload.php and my table information - by El Forum - 12-17-2008, 07:44 PM
How to map upload.php and my table information - by El Forum - 12-18-2008, 07:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB