If you want to assign html table cell value to php variable ,if this is what you are looking for then you can try out with the below code:
You can use an input type hidden wrapped in a form.
<td><input type="hidden" name="value" value="your_value">Your Value</td>
At that point, you can either post the value and use it for your query.
Hope this helps.