You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to add clockwork in vanilla php application. so trying to add in a just index.php file. but it does not show any data to the browser extension or toolbar.
how to install clockwork in a vanilla php application. my code:
getMessage();
}
if ($return == 0) {
$statment = $myPDO->prepare($qry);
$statment->execute();
} else {
$start_time = microtime(true); // Record start time
$statment = $myPDO->prepare($qry);
$statment->execute();
$QueryArray = $statment->fetchAll(PDO::FETCH_ASSOC);
$end_time = microtime(true); // Record end time
$execution_time = ($end_time - $start_time); // Calculate execution time in milliseconds
// Capture the SQL query data and send it to Clockwork
$queryData = [
'query' => $qry,
'bindings' => [],
'time' => $execution_time,
];
$clockwork->addDatabaseQuery($queryData);
return $QueryArray;
}
}
$users = qry("SELECT * FROM users");
?>
<title>Document</title>
<script src="https://cdn.jsdelivr.net/gh/underground-works/clockwork-browser@1/dist/toolbar.js"></script>
requestProcessed(); ?>
The text was updated successfully, but these errors were encountered:
I am trying to add clockwork in vanilla php application. so trying to add in a just index.php file. but it does not show any data to the browser extension or toolbar.
how to install clockwork in a vanilla php application. my code:
getMessage(); } if ($return == 0) { $statment = $myPDO->prepare($qry); $statment->execute(); } else { $start_time = microtime(true); // Record start time $statment = $myPDO->prepare($qry); $statment->execute(); $QueryArray = $statment->fetchAll(PDO::FETCH_ASSOC); $end_time = microtime(true); // Record end time $execution_time = ($end_time - $start_time); // Calculate execution time in milliseconds // Capture the SQL query data and send it to Clockwork $queryData = [ 'query' => $qry, 'bindings' => [], 'time' => $execution_time, ]; $clockwork->addDatabaseQuery($queryData); return $QueryArray; } } $users = qry("SELECT * FROM users"); ?> <title>Document</title> <script src="https://cdn.jsdelivr.net/gh/underground-works/clockwork-browser@1/dist/toolbar.js"></script> requestProcessed(); ?>The text was updated successfully, but these errors were encountered: