我有一个查询在PHPMYAdmin中正确显示所有数据,但是当我在Dreamweaver记录集中测试它时,它不会在正确的列中显示正确的数据。 有没有人经历过这样的事情并知道问题可能是什么? SQL查询是:
select
*
from
patient
left join
person on person.Personnummer = patient.Patient
left join
vanster_implantat on vanster_implantat.patv = patient.Patient
left join
hoger_implantat on hoger_implantat.path = patient.Patient
left join
vanster_operationer on vanster_operationer.Patientov = patient.Patient
left join
hoger_operationer on hoger_operationer.Patientoh = patient.Patient
left join
vanster_processorpatient on vanster_processorpatient.Patientv = patient.Patient
left join
hoger_processorpatient on hoger_processorpatient.Patienth = patient.Patient;
我正在使用记录集,这是它生成的代码:
mysql_select_db($database_Audiologiska, $Audiologiska);
$query_ResultTable = "select * from patient left join person on person.Personnummer = patient.Patient left join vanster_implantat on vanster_implantat.patv = patient.Patient left join hoger_implantat on hoger_implantat.path = patient.Patient left join vanster_operationer on vanster_operationer.Patientov = patient.Patient left join hoger_operationer on hoger_operationer.Patientoh = patient.Patient left join vanster_processorpatient on vanster_processorpatient.Patientv = patient.Patient left join hoger_processorpatient on hoger_processorpatient.Patienth = patient.Patient;";
$ResultTable = mysql_query($query_ResultTable, $Audiologiska) or die(mysql_error());
$row_ResultTable = mysql_fetch_assoc($ResultTable);
$totalRows_ResultTable = mysql_num_rows($ResultTable);