forked from kamba4/sunders
moved files into subdirs
This commit is contained in:
parent
bf6ccf5094
commit
10fcf55b10
242 changed files with 23 additions and 0 deletions
21
data_handler/utils/get_sync_state.php
Executable file
21
data_handler/utils/get_sync_state.php
Executable file
|
@ -0,0 +1,21 @@
|
|||
<?php
|
||||
|
||||
include "config.php";
|
||||
|
||||
$mysqli = new mysqli(MYSQL_HOST, MYSQL_USER, MYSQL_PASSWORD, 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