How to do the similar order receiving function like Didi by php? thank you.

want to do the function of taking an order like Didi, for example, how do I click on the order and then the system automatically dispatches it to me? do the gods have any good ideas? thank you

Php
Jul.06,2022

Let's start with the simplest
if you are a driver, you build a driver table, and there is a field in the table that indicates that the driver is online and offline. When the driver clicks the order button, the status of the field in the table is changed to online. When the system dispatches orders, it looks for driver conditions and filters only to dispatch orders to online drivers, and then the driver can receive the order.

but in practical application, it will certainly be much more complicated than this, and a lot of technologies are involved.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e42849-43937.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e42849-43937.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?