Skip to content

Commit a2d85c8

Browse files
Merge pull request #29 from NymexVentures/development
Small fixes
2 parents 51083d4 + d7de826 commit a2d85c8

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
include('config.db.php');
1313

14-
$sql1 = "SELECT * FROM reg_750";
14+
$sql1 = "SELECT * FROM reg_750 ORDER BY id DESC";
1515
$rs1 = $link1->query($sql1);
1616

1717
?>
@@ -147,4 +147,4 @@ function saveData(textarea) {
147147

148148
</body>
149149

150-
</html>
150+
</html>

src/newpage.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
$fecha = date('l j \of F Y h:i:s A');
5555
$fecha_t = date('l F \t\h\e jS, Y');
5656
//$sql2='UPDATE `reg_750` SET `data` ="'.$g.'", `date` ="'.$fecha.'", `date_title` = "'$fecha_t'" WHERE `reg_750`.`id` ="'.$f.'";';
57-
$sql2 = "INSERT INTO `reg_750` (`id`, `data`, `work_name`, `date`, `activo`, `date_title`) VALUES (NULL, '', '', '" . $fecha . "', NULL, '" . $fecha_t . "');";
57+
$sql2 = "INSERT INTO `reg_750` (`id`, `data`, `work_name`, `date`, `activo`, `date_title`) VALUES (NULL, '', '', '" . $fecha . "', '0', '" . $fecha_t . "');";
5858

5959
$rs2 = $link2->query($sql2);
6060
if (!$rs2) {
@@ -74,4 +74,4 @@
7474

7575
// }
7676

77-
?>
77+
?>

0 commit comments

Comments
 (0)