after using the above query, I then get the info from table to display on site. I have usernames and numbers_and_alpha__as_usernames. All those numbers_and_as_usernames have one thing in common: they all start with the '-' (minus sign) in front of them. I am trying to tell the query that all those numbers should be viewed as 'a timecode user' instead of:
bleed, yuny, johnn, -7CWLWP6V6X
so I could segregate later one and put 'x members, and x timecode users'
How do I translate that so the below bold justifies itself?
<?php
$c=0;
$username="";
require ("logconfig.php");
mysql_connect($host,$user,$pass) or die(mysql_error());
@mysql_select_db($database) or die( "Unable to select database");
$result = mysql_query('SELECT username FROM sessions WHERE status="1"');
$result2 = mysql_query('SELECT username as count FROM sessions WHERE status="1" and username<>"a timecode user "');
$d=mysql_num_rows($result2);
if ($d==0)
echo"";
if ($d==1) .....