Could you send a photo.
I think that depends on What kind of table and what the head/foot board look like. I Have seen someone make a console table by attached some lumber to the top of the headboard and some stabilizing feet. Check You Tube? Perhaps others have dome something