Errors

Started by Lolle, September 14, 2011, 09:49:14 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Lolle


Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\uu\templates\1\template.php on line 92
if ($CURUSER)
        {
        $htmlout .= StatusBar();
        }
        if ($CURUSER)
       {
       $htmlout .= "
       <!-- Installer09 Source - Print Logo (CSS Controled) -->
       <div id='base_logo'>
       <img src='templates/1/images/logo.png' alt='' />
       </div>";
       }


Notice: Undefined variable: query1 in /home2/public_html//admin/usersearch.php on line 805
//    </temporary>   /////////////////////////////////////////////////////

  $res = sql_query($queryc) or sqlerr();
  $arr = mysql_fetch_row($res);
  $count = $arr[0];

  $q1 = isset($q1)?($q1."&amp;"):"";

  $perpage = 30;

  $pager = pager($perpage, $count, "staffpanel.php?tool=usersearch&amp;action=usersearch&amp;".$q1);

  $query1 .= $pager['limit'];

  $res = sql_query($query1) or sqlerr();

  if (mysql_num_rows($res) == 0)
  stdmsg($lang['usersearch_warn'],$lang['usersearch_nouser']);
  else
  {
  if ($count > $perpage)
  echo $pager['pagertop'];
    echo "<table border='1' cellspacing='0' cellpadding='5'>\n";
    echo "<tr><td class='colhead' align='left'>{$lang['usersearch_name']}</td>
    <td class='colhead' align='left'>{$lang['usersearch_ratio']}</td>
        <td class='colhead' align='left'>{$lang['usersearch_ip']}</td>
        <td class='colhead' align='left'>{$lang['usersearch_email']}</td>".
        "<td class='colhead' align='left'>{$lang['usersearch_joined']}</td>".
        "<td class='colhead' align='left'>{$lang['usersearch_lastseen']}</td>".
        "<td class='colhead' align='left'>{$lang['usersearch_asts']}</td>".
        "<td class='colhead' align='left'>{$lang['usersearch_enabled']}</td>".
        "<td class='colhead'>{$lang['usersearch_pR']}</td>".
        "<td class='colhead'>{$lang['usersearch_pUL']}</td>".
        "<td class='colhead'>{$lang['usersearch_pDL']}</td>".
        "<td class='colhead'>{$lang['usersearch_history']}</td></tr>";
        $ids = '';
    while ($user = mysql_fetch_array($res))
    {

stoner

Could you post a few lines around and including the lines mentioned in the error.  It will help us to help you

Lolle

hi, I get This error :(

Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\uu\templates\1\template.php on line 92
Notice: Undefined variable: query1 in /home2/public_html//admin/usersearch.php on line 805