Skip to content

how to know sql query #121

@arkgnan

Description

@arkgnan

in notorm documentation we know to get sql query use (string) $table but i didn't get any result when use it.
$data = array('name'=>'testing','age'=>'25') $result = $db->tablename->insert($data); echo (string) $result ;
i know the query is insert into tablename (name,age) values('testing','25'); i want to catch the query to variable. but echo (string) $result didn't show anything.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions