mirror of https://github.com/rusefi/msqur.git
merge.
This commit is contained in:
parent
0347f09139
commit
7b7c7cb810
|
@ -34,7 +34,7 @@ echo '<table>';
|
|||
echo '<tr><th>ID</th><th>Cylinders</th><th>Liters</th><th>Compression</th><th>Turbo</th><th>Firmware/Version</th><th>Upload Date</th><th>Views</th></th>';
|
||||
for ($c = 0; $c < $numResults; $c++)
|
||||
{
|
||||
echo '<tr><td><a href="index.php?msq=' . $results[$c]['id'] . '">' . $results[$c]['id'] . '</a></td><td>' . $results[$c]['numCylinders'] . '</td><td>' . $results[$c]['displacement'] . '</td><td>' . $results[$c]['compression'] . ':1</td><td>' . $results[$c]['induction'] . '</td><td>' . $results[$c]['firmware'] . '/' . $results[$c]['signature'] . '</td><td>' . $results[$c]['uploadDate'] . '</td><td></td></tr>';
|
||||
echo '<tr><td><a href="index.php?msq=' . $results[$c]['mid'] . '">' . $results[$c]['mid'] . '</a></td><td>' . $results[$c]['numCylinders'] . '</td><td>' . $results[$c]['displacement'] . '</td><td>' . $results[$c]['compression'] . ':1</td><td>' . $results[$c]['induction'] . '</td><td>' . $results[$c]['firmware'] . '/' . $results[$c]['signature'] . '</td><td>' . $results[$c]['uploadDate'] . '</td><td></td></tr>';
|
||||
}
|
||||
echo '</table>';
|
||||
?>
|
||||
|
|
2
db.php
2
db.php
|
@ -296,7 +296,7 @@ function getAll()
|
|||
|
||||
try
|
||||
{
|
||||
$st = $db->prepare("SELECT * FROM metadata INNER JOIN engines ON metadata.engine = engines.id");
|
||||
$st = $db->prepare("SELECT m.id as mid, numCylinders, displacement, compression, induction, firmware, signature, uploadDate FROM metadata m INNER JOIN engines e ON m.engine = e.id");
|
||||
if ($st->execute())
|
||||
{
|
||||
$result = $st->fetchAll(PDO::FETCH_ASSOC);
|
||||
|
|
Loading…
Reference in New Issue