I am having a hard time with joins - my following code displays:
..member_name .gender
instead of the actual data - I've been reading through my PHP and
MySQL manuals - the MySQL manual tells me how to form the syntax but
it is always shown in MySQL interactive mode and not using PHP code so
I have to try and figure it out in PHP (I've already opened mysql and
selected the database):
$php_SQL = "SELECT basics.member_n ame, personal.gender FROM basics,
personal WHERE basics.member_n ame = personal.member _name";
$php_resultID = mysql_query($ph p_SQL, $php_linkID);
while ($php_row = mysql_fetch_row ($php_resultID) )
{
print "$php_row->basics.member_ name
$php_row->personal.gende r<BR>";
}
..member_name .gender
instead of the actual data - I've been reading through my PHP and
MySQL manuals - the MySQL manual tells me how to form the syntax but
it is always shown in MySQL interactive mode and not using PHP code so
I have to try and figure it out in PHP (I've already opened mysql and
selected the database):
$php_SQL = "SELECT basics.member_n ame, personal.gender FROM basics,
personal WHERE basics.member_n ame = personal.member _name";
$php_resultID = mysql_query($ph p_SQL, $php_linkID);
while ($php_row = mysql_fetch_row ($php_resultID) )
{
print "$php_row->basics.member_ name
$php_row->personal.gende r<BR>";
}
Comment