Delete selected contact

%s

\n", $ERRMSG); fatal(" "); } if (msqlSelectDB($sock,"contacts") < 0) { printf("

%s

\n", $ERRMSG); fatal(" "); } if (msqlQuery($sock, "select name,surname,titula,jobtitle,company,dept,h_street,h_city,h_zip,h_country,h_phone,w_street,w_city,w_zip,w_country,w_phone,mailing_addr,pager,mobil_phone,email,home_page,categories,public,w_account from $user where rbr=$no order by surname")<0) { printf("

%s

\n", $ERRMSG); fatal(" "); } $res=msqlStoreResult(); $row=msqlFetchRow($res); if (#$row > 0) { echo("
\n"); echo("

\n"); printf("
Name: | %s, %s
\n", $row[1], $row[0]); if ($2 != " ") { printf("
Title: | %s
\n", $row[2]); } if ($3 != " ") { printf("
Job Title: | %s
\n", $row[3]); } if ($4 != " ") { printf("
Company: | %s
\n", $row[4]); } if ($5 != " ") { printf("
Department: | %s
\n", $row[5]); } if ($12 != " ") { printf("
Business Address
\n"); printf("
Street: | %s
\n", $row[11]); printf("
Zip, City: | %s %s
\n", $row[13], $row[12]); printf("
Country: | %s
\n", $row[14]); printf("
Phone: | %s
\n", $row[15]); printf("
Fax: | %s
\n", $row[21]); printf("
Account No: | %s
\n", $row[23]); } if ($17 != " ") { printf("
Pager: | %s
\n",$row[17]); } if ($18 != " ") { printf("
Mobile: | %s
\n",$row[18]); } if ($19 != " ") { printf("
E-mail: | %s
\n",$row[19], $row[19]); } if ($20 != " ") { printf("
Home Page: | %s
\n",$row[20], $row[20]); } echo("
\n
\n\n \n"); echo(" \n"); echo("\n"); echo(" \n | \n \n"); echo(" \n
\n \n \n

"); } msqlFreeResult($res); >