|
Posted by Duderino82 on 03/21/06 17:33
The code is like this.
if($_GET['modifica'] && $_GET['table']){
// do stuff
if(mysql_select_db($db_name, $db))
{ // do a query
switch($table){
case 'processori': table_processori($row,1);
// displays the table at the end of which are the buttoms $delete
and $submit
// create $str with the query
break;
case 'schedemadri': .......break;
default:break;
}
if (isset($_POST['delete']))
{ header ("Location: $redirect");
exit;
}
if (isset($_POST['submit']))
{ if(mysql_select_db($db_name, $db))
mysql_query($str, $db) or die("Query non valida: " .
mysql_error());
header ("Location: $redirect");
}
}
mysql_close($db);
}
Navigation:
[Reply to this message]
|