-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to know sql query #121
Comments
The correct syntax is var_dump($db->tablename()->insert($data)); |
var_dump only show boolean values (true or false) |
$db->debug = true; |
Setting $db->debug = true does nothing. How to use the callback with debug as suggested in their documentation? I tried all possible ways with no luck. Does anyone have a working example of this debug callback functionality? If yes please do share the code snippet. Thanks |
@``` // or $db->debug=true; exit;
|
Fully working notom example code with debug functionality can be found here: https://gist.github.com/surferxo3/2a1c06b9b5b373e6f1dbb2f0e1bd9250 |
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. butecho (string) $result
didn't show anything.The text was updated successfully, but these errors were encountered: