The fees to which a witness may be entitled in a civil case shall be allowed on the affidavit of the witness, stating the number of days he has attended and the amount of mileage, toll, and ferriage to which he is entitled, to be taken and preserved by the clerk of the court, master, or other officer before whom the witness was called to testify; and a certificate of the allowance shall be given to the witness. A witness shall be entitled to demand, at the expiration of each day, his compensation for attending on that day; and if the same be not paid, the witness shall not be obliged to attend further until the compensation for his previous attendance shall be paid, unless the party liable make and file an affidavit of his inability to pay. The party paying a witness attending on his behalf may file the certificate of the witness among the papers in the cause and, if he recover costs therein, the amount shall be taxed in the bill of costs. Any witness may sue for and recover from the party on whose behalf he was summoned the amount specified in his certificate. Where a witness holds a certificate and the same has been duly entered on the witness docket, it may be taxed and collected as other costs.
Miss. Code § 25-7-51