Some suggestions that may be helpful:
<tr id="listing_4"><td>....</td><td>....</td></tr> <tr id="listing_7"><td>....</td><td>....</td></tr> <tr id="listing_8"><td>....</td><td>....</td></tr>Where the numbers 4, 7, and 8 are the database
listing_idvalues. Then when a table row is clicked I can extract the id, chop off the first eight characters to be left with the number (which I then pass to the Ajax handler.
pg_fetch_objectto retrieve an entire row as an object. Then you can apply