Select by category

\n

\n"); echo("
ABC
\n"); echo("
all
\n"); $sock = msqlConnect(); if ($sock < 0) { printf("

%s

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

%s

\n", $ERRMSG); fatal(""); } if (msqlQuery($sock, "select nmbr, code from $user order by nmbr")<0) { printf("

%s

\n", $ERRMSG); fatal(""); } $res=msqlStoreResult(); $row=msqlFetchRow($res); if (#$row > 0) { while(#$row > 0) { if ((int)$row[0] != 1) { printf("
%s
\n", $row[0], $row[1]); } $row=msqlFetchRow($res); } msqlFreeResult($res); } printf("
New
\n"); >