Welcome Guest, Not a member yet? Register   Sign In
Get max_lenght of numeric field
#1

HI , this is my function :

PHP Code:
        $finfo $this->db->getFieldData($tabella_db);


    
    foreach ($finfo as $val) {

    
         if($val->type == 'varchar'  OR  $val->type == 'text' ){

               $lunghezza =$val->max_length;

               fwrite($fp"trim|min_length[0]|max_length[$lunghezza]");

             }

            } 

How can i do the same on numeric field (tinyint,smallint etc.)
Reply


Messages In This Thread
Get max_lenght of numeric field - by pippuccio76 - 05-22-2021, 02:47 AM



Theme © iAndrew 2016 - Forum software by © MyBB