i got 2 tables:
Table1 = eqdkp_members with the colums: member_name, member_adjustment
Table2 = raidsign_signups with the colums: name
This is what i want to do:
The users in the raidsign table is deleted all the time, but the ones in the eqdkp members is constant. Users have to type in their name again everytime the raidsign table is empty, so it has to be independent of case sensitivty if the user types his name FrAnk one time and frank another time.
I want to, is compare the user in the eqdkp members table to the other one. if the user exist, i want to show the dkp number for that user found in the eqdkp table. i really dont know how to do this, and iv'e tried lots of different things with no success.
example:
$compare1 = mysql_query ("SELECT name FROM raidsign_signups");
$myrow = mysql_fetch_array($compare1);
$compare2 = mysql_query ("SELECT member_name FROM eqdkp_members");
$myrow2 = mysql_fetch_array($compare2);
if (strtolower ($myrow['name']) == ($myrow2['member_name'])) {
echo "DKP";
} else {
echo "No DKP";
}
or
$query1 = "SELECT raidsign_signups.name, eqdkp_members.member_name FROM raidsign_signups, eqdkp_members WHERE raidsign_signups.name = eqdkp_members.member_name";
$result1 = mysql_query ($query1) or die(mysql_error());
$member = mysql_fetch_row($result);
any idea on how to write it?
-OmiCron-