I'm using Arduino uno r3 and MFRC522. What syntax should i use to get the uid of the rfid to php ?
Typically, that is done making a GET request. That means you need an Ethernet shield.
oh how about no ethernet shield ? Is there anyway for it ? or maybe write through mysql ?
Without an ethernet shield, you could use the serial port to send data to the PC. IF the php script was running, and listening to the serial port, then it could do something with the RFID data.
However, without the ethernet shield, you can not start the PHP script running, and bidirectional communication is problematic, so it might be difficult, depending on your OS, to get serial data into the PHP script or to get serial data out of the PHP script to the Arduino.