require "rb.php"; R::setup('mysql:host='.$host.';dbname='.$db,$user,$password); $Type = R::dispense( 'Type' ); R::store($TypeUser); 

Gives an error message:

 Fatal error: Uncaught RedBeanPHP\RedException: Invalid type: Type in /storage/ssd5/276/3652276/public_html/online/rb.php:12675 Stack trace: #0 /storage/ssd5/276/3652276/public_html/online/rb.php(10723): RedBeanPHP\Util\DispenseHelper::dispense(Object(RedBeanPHP\OODB), 'Type', 1, false) #1 /storage/ssd5/276/3652276/public_html/online/registration of physical user1.php(10): RedBeanPHP\Facade::dispense('Type') #2 {main} thrown in /storage/ssd5/276/3652276/public_html/online/rb.php on line 12675 

    2 answers 2

    It can be seen as the lowercase alphabetical characters ,

    they have it written on the site

    Perhaps in the line $Type = R::dispense( 'Type' ); write Type in lower case, although not 100% sure

      REMEMBER !!!!!! IT IS IMPORTANT !!!

      Never write capitalized words in R::dispense(...) ! Itself suffered 4 days on it ((Columns and names of a DB can be written capital, in Red Bean PHP it is better to write in the lower case.