The problem must be in this statement
$Query= "SELECT * FROM $TableName WHERE MATCH (City,City2) AGAINST ('dania')";
because I get an error when I try to print_r $Row;
I get:
Supplied argument is not a valid MySQL result resource
HOWEVER, this may help:
If I fetch the rows, Without using the MATCH function in that statement, I am able to print_r ($Row), and the output "without the match function" looks like
this ( Please disregard all fields except the City and City2 fields)
Row1:
Array ( [0] => 1 [id] => 1 [1] => Gil [UserName] => Gil [2] => gil123 [Password] => gil123 [3] => gil@aol.com [EmailAddress]
=> gil@aol.com [4] => Male [Gender] => Male [5] => 35 [Age] => 35 [6] => Florida [State] => Florida [7] => Dania [City] =>
Dania [8] => [City2] => [9] => [City3] => [10] => [City4] => [11] => [City5] => [12] => [City6] => [13] => [City7] => [14] =>
[City8] => [15] => [City9] => [16] => [City10] => [17] => African American [Ethnic] => African American [18] => 6'10"
[Height] => 6'10" [19] => 179 [Weight] => 179 [20] => Brown [Hair] => Brown [21] => Hazel [Eye] => Hazel [22] => A Bit
Chubby [Body] => A Bit Chubby [23] => College Degree [Edu] => College Degree [24] => $50,000 to $75,000 [Income] =>
$50,000 to $75,000 [25] => Computer related (WWW) [Career] => Computer related (WWW) [26] => safs fsd sd sd f asfd sfd f
[Comments] => safs fsd sd sd f asfd sfd f )
Row2:
Array ( [0] => 2 [id] => 2 [1] => Eddy [UserName] => Eddy [2] => eddy123 [Password] => eddy123 [3] => ed@aol.com
[EmailAddress] => ed@aol.com [4] => Male [Gender] => Male [5] => 53 [Age] => 53 [6] => Florida [State] => Florida [7] =>
Miami [City] => Miami [8] => dania [City2] => dania [9] => [City3] => [10] => [City4] => [11] => [City5] => [12] => [City6] =>
[13] => [City7] => [14] => [City8] => [15] => [City9] => [16] => [City10] => [17] => Cape Verde [Ethnic] => Cape Verde [18]
=> 7'0" [Height] => 7'0" [19] => 149 [Weight] => 149 [20] => Brown [Hair] => Brown [21] => Gray [Eye] => Gray [22] =>
Muscle Jacked [Body] => Muscle Jacked [23] => Bachelors Degree [Edu] => Bachelors Degree [24] => $30,000 to $50,000
[Income] => $30,000 to $50,000 [25] => Computer related (WWW) [Career] => Computer related (WWW) [26] => asfd sd s fsd
fsdf sdf sf [Comments] => asfd sd s fsd fsdf sdf sf )
Row3:
Array ( [0] => 3 [id] => 3 [1] => Jerkboy [UserName] => Jerkboy [2] => jerk123 [Password] => jerk123 [3] => jerk@aol.com
[EmailAddress] => jerk@aol.com [4] => Male [Gender] => Male [5] => 35 [Age] => 35 [6] => Florida [State] => Florida [7] =>
dania [City] => dania [8] => [City2] => [9] => [City3] => [10] => [City4] => [11] => [City5] => [12] => [City6] => [13] =>
[City7] => [14] => [City8] => [15] => [City9] => [16] => [City10] => [17] => Cape Verde [Ethnic] => Cape Verde [18] => 6'10"
[Height] => 6'10" [19] => 239 [Weight] => 239 [20] => Red [Hair] => Red [21] => Gray [Eye] => Gray [22] => Average [Body]
=> Average [23] => College Student [Edu] => College Student [24] => $30,000 to $50,000 [Income] => $30,000 to $50,000 [25]
=> Computer related (WWW) [Career] => Computer related (WWW) [26] => r rsdf f sf sdf asd fsd f [Comments] => r rsdf f sf
sdf asd fsd f )
Is the problem that I'm not matching the (City,City2) columns against ('dania') correctly?