I have this select form which collects every thing from my database.
This is for user to change a templATE:
I am having problem with the updating.
Could someone help me to work on the updat so that when a client chooses another template, it will be updated?
i am new in PHP. Where should the update set start and is it right to do it
UPDATE * SET templates WHERE type ='single' ORDER BY description";
Thanks
echo "<table border ='0' width='650' id='table' align='center' cellpadding='1' cellspacing='1' >\n"
."<tr>\n"
."<td width='80%'align='center' colspan='3'>"._T_EDIT."</td>\n"
."</tr>\n";
$query2 = "SELECT tid FROM navi WHERE nid = $nid";
$result2 = my_sql_query($query2, "");
$actualSelected = $result2[1][0]['tid'];
$query5 = "SELECT * FROM templates WHERE type ='single' ORDER BY description";
$result5 = my_sql_query($query5, "tid");
echo "<tr>\n";
echo "<td width='80%'align='center' colspan='3'><br />";
echo "<select>";
if( is_array($result5[1]) ) {
foreach($result5[1] as $key => $value ) {
echo "<option value='".$value['tid']."'";
if( $actualSelected == $value['tid'] ) {
echo ' selected="selected"';
}
echo ">".$value['description']."</option>";
}
}
echo "</select></td></tr>";
echo "<tr>\n"
."<td width='100%' colspan='3'></td>\n"
."</tr>\n"
."<tr>\n";
echo "<td width='80%' align='center' colspan='3'><br /><input type='submit' name='new' value='"._CHANGE."' id='button'> ";
echo "<input type='submit' name='reset2' value='"._RESET."' id='button' ></td>\n";
echo "<br /></tr>\n";
echo "</table><br />\n"
where should the u