| Server IP : 64.202.187.69 / Your IP : 216.73.217.74 Web Server : Apache System : Linux 69.187.202.64.host.secureserver.net 3.10.0-1160.144.1.el7.tuxcare.els6.x86_64 #1 SMP Fri May 29 16:22:24 UTC 2026 x86_64 User : transmarket ( 1001) PHP Version : 7.2.34 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/transmarket/translator/controllers/ |
Upload File : |
<?php
include 'connection.php';
$sqlSettings = 'SELECT * FROM `tbl_sentence` WHERE suggestion_count = 5 AND is_open_for_voting = 0 ';
$resultSettings = $mysqli->query($sqlSettings);
if($resultSettings->num_rows > 0) {
while ($row = $resultSettings->fetch_object()) {
$sentence_id = $row->id;
// insert winning sentence table record into clone tableINSERT INTO tbl_winning_sentence
/*$sqlDuplicateSentence = 'INSERT INTO tbl_winning_sentence
SELECT * FROM tbl_sentence
WHERE id = "'.$sentence_id.'"';
$resultDuplicateSentence = $mysqli->query($sqlDuplicateSentence);
// insert winning sentence suggessions table records into clone tableINSERT INTO tbl_winning_sentence
$sqlDuplicateSuggession = 'INSERT INTO tbl_user_winning_suggestion_mapping
SELECT * FROM tbl_user_suggestion_mapping
WHERE sentence_id = "'.$sentence_id.'"';
$resultDuplicateSuggession = $mysqli->query($sqlDuplicateSuggession);*/
}
} ?>