I am working on understanding AJAx , but my problem is not there
I have my psql database connection and whenever i try to do this
Code: Select all
$correct = 1;
while($row = pg_fetch_array($result))
{
echo "Checking ".$gamename." with ".$row['gamename'];
if ($gamename == $row['gamename']){
$correct = 0;
echo "FOUND";
}
}
if (correct == 0)
echo "<h4>Checking duplicated Game Name... $error</h4>".$correct;
else
echo "<h4>Checking duplicated Game Name... $ok</h4>".$correct;
i can see this
Checking stevoo with stevoo
which is identical i cannot compare my gamename with the one that comes from my database.
What am i doing wrong ?
sTevoo