<?php
/************************************************************************
- * MXChange v0.2.1 Start: 10/19/2003 *
- * =============== Last change: 06/30/2004 *
+ * Mailer v0.2.1-FINAL Start: 10/19/2003 *
+ * =================== Last change: 06/30/2004 *
* *
* -------------------------------------------------------------------- *
* File : what-categories.php *
// Add description as navigation point
addMenuDescription('member', __FILE__);
-$UID = getUserId();
+$UID = getMemberId();
$whereStatement = " WHERE `visible`='Y'";
if (isAdmin()) $whereStatement = '';
if ($cats > 0) {
$LEAST = false;
if (isFormSent()) {
- $cnt = 0;
+ $cnt = '0';
foreach (postRequestElement('cat') as $cat => $joined) {
if ($joined != 'Y') $cnt++;
} // END - foreach
// Is the form sent?
if (isFormSent()) {
// Start counting all
- $cnt = 0;
+ $cnt = '0';
// Go through all entries
foreach (postRequestElement('cat') as $cat => $joined) {
$result_user = SQL_QUERY_ESC("SELECT `id` FROM `{?_MYSQL_PREFIX?}_user_cats` WHERE `userid`=%s AND `cat_id`=%s LIMIT 1",
array($UID, bigintval($cat)), __FILE__, __LINE__);
- if (SQL_NUMROWS($result_user) == 0) {
+ if (SQL_NUMROWS($result_user) == '0') {
$sql = "INSERT INTO `{?_MYSQL_PREFIX?}_user_cats` (userid, cat_id) VALUES ('%s','%s')";
} // END - if