I'm trying to add default value of the user when saving the form with no sucess !!
The query:
mysql_select_db ( $database_ggi, $ggi );
$query_rsUserName = sprintf ( "SELECT nome FROM utilizadores WHERE utilizador = '%s'", $_SESSION['MM_Username'] );
$rsUserName = mysql_query ( $query_rsUserName, $ggi ) or die ( mysql_error () );
$row_rsUserName = mysql_fetch_assoc ( $rsUserName );
$totalRows_rsUserName = mysql_num_rows ( $rsUserName );
$nome = $row_rsUserName['nome'];
$e["on_insert"] = array("add_client", null, true);
$grid->set_events($e);
function add_client(&$data)
{
$data["params"]["Utilizador"] = $nome;
}
Can somewone help me!
Best regards,
Jorge Barosa
1 Answers
Your Answer