ok guys im running my own MySQL database from my XP computer. Apache Web Server. I got a proble3m with a script.
function authenticate($user, $pass, $minRank) {
global $fontString;
global $myrow;
global $recruit;
$result = @("SELECT * FROM members WHERE username = \"$user\"");
$myrow = mysql_fetch_array($result);
if($myrow != NULL)
extract($myrow);
if($user == $username && $pass == $password and $username != NULL) {
if($disable != 1) {
if($rank >= $minRank) {
return 1;
it keeps returning Invalid Username or Password
as well as
for($i=25; $i >= 21; $i--) {
$result = @("SELECT * FROM members WHERE disable = 0 and rank = $i");
while($row = mysql_fetch_array($result)) {
extract($row);
this section isnt producing any result.. i have it setup for localhost and other sections of my site work just fine pulling from my Database . I know i have entries into my database So why isnt it displaying them ?