Skip to content
This repository was archived by the owner on May 18, 2021. It is now read-only.

Commit efb2438

Browse files
author
cammygames
committed
Fix For Submit Buttons
Thanks To erdknuffel for pointing this out
1 parent c85351c commit efb2438

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

views/vehicles.php

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

130130
if (isset($_POST['pid']))
131131
{
132-
$sql = "SELECT * FROM `vehicles` WHERE `classname` LIKE '%".$searchText."%' ".$max." ;";
132+
$sql = "SELECT * FROM `vehicles` WHERE `pid` LIKE '%".$searchText."%' ".$max." ;";
133133
}
134134
else
135135
{
136-
$sql = "SELECT * FROM `vehicles` WHERE `pid` LIKE '%".$searchText."%' ".$max." ;";
136+
$sql = "SELECT * FROM `vehicles` WHERE `classname` LIKE '%".$searchText."%' ".$max." ;";
137137
}
138138
}
139139
else

0 commit comments

Comments
 (0)