Hi I need help with the following function:
function getsubact ($snam) {
$query = "SELECT files.id, files.snam, files.acct, files.doc_date, files.flag, files.file, files.rep_id, files.mgr_id, files.lname, files.mkval, files.dir FROM files WHERE files.snam = '$snam' ";
return;
}
This function is called when the use clicks on the "C" by click on the C the user is asking for all records that share $snam in the snam field of the mysql db.
<td align="center" width="100"><b><?echo "<a href=\"$dir/$file\" target=\"_blank\">$acct</a>"; if ($flag == "Y"){ echo "<A HREF=\"$PHP_SELF?action=getsubact($snam)\"> C</A>"; }?></b></td>
What I am trying to do I get the function to display the new results to the same page buy using a new query, but with now
luck.
Any suggestion are a point in the correct direction will be appreciated.