prepare("INSERT INTO cars (user_id, title, brand, model, year, price, location, fuel_type, transmission, mileage, description, image, status) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 'pending')"); $stmt->execute([$user_id, $title, $brand, $model, $year, $price, $location, $fuel, $transmission, $mileage, $desc, $image]); $success = "Listing submitted! Waiting for admin approval."; } catch (PDOException $e) { $error = "Error: " . $e->getMessage(); } } ?>
Back to Dashboard

List Your Car for Sale

Enter accurate details to get better responses from buyers.