How to delete a record from a table??
The table holds a.o. a field name "datum"
The field would look like
01-01-2011
12-02-2011
and so on
The forms can only be opened by logged in users
In the form I can load the userdetails by
In the HTML I can create a selectbox showing all the dates
So far so good, but how can make the submit button to delete that specific record from the table.
The table holds a.o. a field name "datum"
The field would look like
01-01-2011
12-02-2011
and so on
The forms can only be opened by logged in users
In the form I can load the userdetails by
<?php
$user =& JFactory::getUser();
$db =& JFactory::getDBO();
$query = "SELECT * FROM `jos_comprofiler` WHERE `id` = ".$user->id."; ";
$db->setQuery($query);
$user_info = $db->loadObject();
?>
In the HTML I can create a selectbox showing all the dates
So far so good, but how can make the submit button to delete that specific record from the table.