What's new

Welcome to xCrud Community - Data Management and extended PHP CRUD

Join us now to get access to all our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, and so, so much more. It's also quick and totally free, so what are you waiting for?

Record added using xcrud doesn't populate timestamp field

k439

New member
Joined
Dec 9, 2021
Messages
10
Reaction score
0
Points
1
Location
Texas
The timestamp field works correctly when adding records using PHPMyAdmin but the field is blank when adding a record using xcrud.
 

k439

New member
Joined
Dec 9, 2021
Messages
10
Reaction score
0
Points
1
Location
Texas
I added the following and the timestamp now works
$xcrud->pass_var('added', date('Y-m-d H:i:s'), 'create');
$xcrud->pass_default('added',date('Y-m-d H:i:s'));

I don't know if both are needed.
 
Top Bottom