Welcome Guest, Not a member yet? Register   Sign In
insert without data
#2

it's the Model itself that does this check as it's expecting to work with data. The Query Builder, on the other hand, doesn't care. So you should be able to do something like:

PHP Code:
db_connect()->table('gallery')->insert([]);

or 

db_connect()->query('INSERT INTO gallery VALUES();'); 
Reply


Messages In This Thread
insert without data - by webdeveloper - 06-05-2022, 04:26 AM
RE: insert without data - by kilishan - 06-05-2022, 08:56 PM
RE: insert without data - by webdeveloper - 06-07-2022, 03:12 AM
RE: insert without data - by kilishan - 06-07-2022, 06:42 AM
RE: insert without data - by webdeveloper - 06-08-2022, 05:44 AM
RE: insert without data - by kenjis - 06-10-2022, 04:03 PM



Theme © iAndrew 2016 - Forum software by © MyBB