Rent a Car Mars
A car rental company in Prishtinë running its fleet on phone calls and a paper diary — given a public site and a staff back office that share one database, so a date booked online is unavailable everywhere the same second.
Mars rents cars in Prishtinë, mostly to locals and to diaspora flying in for a few weeks. The fleet was booked by phone call, a name in a diary and someone’s memory — which works until two people ask for the same week.
So we built the site and the back office as one system on one database: the customer sees the same calendar the staff see, a reservation takes its dates the moment it is sent, and availability is never typed in twice.
Designed and built by Troiana. The structure, visual design and back office are ours; the fleet, photography and prices are Rent a Car Mars’s own.
- 01
A fleet read from the database
Every car on the site comes from the fleet table. Adding one publishes it; hiding one removes it while keeping its history. Even the filters come from the fleet.
- 02
Holds that take the dates
A reservation takes its dates at once as a 30-minute hold. Staff confirm or cancel; an ignored hold frees the dates itself, with no scheduled job to forget.
- 03
A row lock, not a race
The car is locked before availability is checked. A concurrency test that double-booked 2 rounds in 8 without the lock produces none with it.
- 04
One definition of free
Bookings, live holds and staff blocks come from one query, shared by the customer calendar, the submit check and every back-office screen.
- 05
The back office
Orders with holds counting down live, a calendar for blocking dates with a reason, and a fleet page where a car is added or hidden.
- 06
Stored, then sent
Every reservation and message is saved before the email goes, so a failed send never loses a customer. Sessions are protected and logins throttled.
Live pages, as they are today.



The diary, replaced by the thing it was tracking.
Staff land on the orders, holds first, because those are on a clock. The list refreshes every five seconds. The bookings shown are examples.




The live homepage, under Google Lighthouse.
Desktop · median of three runs · 8 November 2026
Mars went from a fleet tracked in someone’s head to a fleet tracked in one place, visible to the customer and the office at the same time. The site sells the cars; the system behind it makes sure it can only sell the ones that are free.
- PHP 8
- MySQL · InnoDB
- PDO
- Vanilla JS
- Server-rendered
- Row locking
- No build step
Next case · 08 / 20
Maestria Immobiliare
A real estate and turnkey renovation site built to the client’s brief — 100 in every Lighthouse category.