I am connecting to MySQL with Redbean PHP, and dates and date_deux go through varchar (255).
I assume that by default I work in liquid mode. How can I fix the problem?
require('rb.php'); R::setup('my connection info',$username, $password); $book = R::dispense( 'book' ); $book->title = 'Boost development with RedBeanPHP'; $book->author = 'Charles Xavier'; $book->date = '2010-07-08'; $book->date_deux = '08/07/2010'; $id = R::store($book); echo $id;
UPDATE:
I assume I'm looking forward to how to do this before version 3.0? The documentation does not indicate what to do before version 3.0.
source share