Ok, I fixed all the errors that brought up, and did away with 1 end of the query, Basically I want it to list all records where STATUS = 0 it is currently listing 0’s and 1’s Code was changed so here is the new code, Spelling and case has been verified but Ill post part of the SQL here too
I have disabled the line
[php]
<?php
error_reporting(E_ALL);
include './include/mysql.php';
mysql_connect("$host", "$user", "$pass") or die(mysql_error());
mysql_select_db("$database") or die(mysql_error());
$setpage = 'add_user';
$return = 'man_user';
$table = "USERS";
if (empty($qstring)) $qstring = 'ORDER BY ID DESC LIMIT 20';
$qstring = "$qstring";
?>
<?PHP
if (empty($check))
{
?>
No products found. |
<?PHP
}
?>
[/php]
SQL
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
CREATE TABLE `USERS` (
`ID` int(11) NOT NULL auto_increment,
`NAME` varchar(255) NOT NULL default '',
`PASSWORD` varchar(255) NOT NULL default '',
`EMAIL` varchar(255) NOT NULL default '',
`STATUS` varchar(255) NOT NULL default '0',
PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ;
Just occured to me, will the varchar(255) have anything to do with it?