Page 1 of 1

Two functions together

Posted: Tue Nov 18, 2008 2:57 pm
by zed420
Hi All

I like to create two functions on a same file and run them. I've got a file where I've run a select query so there are list of results. I would like to create two functions Delete and Edit on a same page, I have been trying but failing miserably, could anyone guide to right direction please.

Thanks
Zed

Re: Two functions together

Posted: Tue Nov 18, 2008 3:04 pm
by aceconcepts

Code: Select all

 
delete($id_from_query_results);
 
edit($id_from_query_results);
 
function delete($id)
{
  //delete something
}
 
function edit($id)
{
  //edit something
}