我有 2 张桌子:
函数式
idfunc | nomefunc | rg | cpf | etc...|
10000 | example1 | 00 | 00 | etc...|
10001 | example2 | 00 | 00 | etc...|
展览会
idferias | idfunc | ferias...........|
00001 ..| ......... | example fe... |
00002 ..| ......... | example fe... |
00003 ..| ......... | example fe... |
我想从每个来自ferias
过滤的项目列表中获取。idfunc
funcionarios
我试过这段代码:
<?php
include('mysql.php');
if ($db_found) {
$SQL = "SELECT idfunc FROM ferias AS idfunc FROM funcionarios";
$result = mysql_query($SQL);
while ( $db_field = mysql_fetch_assoc($result) ) {
echo $db_field['idfunc']."<br>";
}
} else {
print "Database NOT Found ";
mysql_close($db_handle);
}
?>
没有成功。