forked from kamba4/sunders
containerized the app
This commit is contained in:
parent
51b982d43b
commit
070ccc9a19
14 changed files with 118204 additions and 4 deletions
21
utils/get_sync_state.php
Executable file
21
utils/get_sync_state.php
Executable file
|
@ -0,0 +1,21 @@
|
|||
<?php
|
||||
|
||||
include "config.php";
|
||||
|
||||
$mysqli = new mysqli(MYSQL_HOST, MYSQL_USER, MYSQL_PASSWD, MYSQL_DB);
|
||||
|
||||
if($mysqli->connect_errno) {
|
||||
echo "Error while connecting to DB : $mysqli->error \n" ;
|
||||
exit(1);
|
||||
}
|
||||
$mysqli->autocommit(FALSE);
|
||||
|
||||
$result = $mysqli->query("SELECT * FROM sync_state WHERE k = 'sequenceNumber'");
|
||||
|
||||
while($row = $result->fetch_assoc()) {
|
||||
echo $row["v"];
|
||||
}
|
||||
|
||||
$mysqli->close();
|
||||
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue